-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add possiblity of input in seconds to TimeDeltaParameter #3125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other than the one comment about incorrectly named variable, i'm good here
@@ -447,7 +447,7 @@ traceback_max_length | |||
Parameters controlling the contents of batch notifications sent from the | |||
scheduler | |||
|
|||
email_interval | |||
email_interval_minutes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this config variable should remain email_interval
, that's the name which is searched for by the code
Line 17 in 857deff
email_interval = luigi.parameter.IntParameter( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a change in that file. But looks like tox
threw it out. I didn't know I have to commit before running tox
. Please check the commit I'll make in a few minutes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Committed. I'm not sure if it solves the issue though. And I don't know how I'd go about writing a test for it. Do you have any tips?
EDIT: can I make the code lines linked to appear in line like you did?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool; yeah, this is what i was expecting.
As for the link/code preview, i think it has to be a code link from master
. I didn't do anything special other than past the link.
@@ -447,7 +447,7 @@ traceback_max_length | |||
Parameters controlling the contents of batch notifications sent from the | |||
scheduler | |||
|
|||
email_interval | |||
email_interval_minutes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool; yeah, this is what i was expecting.
As for the link/code preview, i think it has to be a code link from master
. I didn't do anything special other than past the link.
Apologies for massive delay. Stalebot comments on a bunch of Luigi PRs and that reminded me that I approved some PRs and never merged them. Going back through them now, updating them with master, and confirming that all their checks pass. |
Description
Allow input as number in seconds to
TimeDeltaParameter
to makemax_keep_alive_idle_duation
except the same format as most other config options (i.e. seconds). This means that anyTimeDeltaParameter
used in aluigi.Task
can also be given as a bare number and interpreted as seconds.Plus two small changes:
batch_notifier.email_interval
gets a new aliasbatch_notifier.email_interval_minutes
to make it obvious that a different unit is used there.Motivation and Context
Closes #3123. Making duration config parameters as consistent as possible. (
batch_notifier.email_interval
is still given in minutes but renamed tobatch_notifier.email_interval_minutes
).Have you tested this? If so, how?
I have included two new unit tests.