-
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
format for config times is inconsistent #3123
Comments
Thanks for reporting inconsistencies. If you make a PR for this, could you consider adding the time unit to the config parameter names, e.g. |
I don't like that idea. I'm making it so that you can also enter something like |
I was looking into it and seems what I was proposing is way too much effort because it would break a bunch of tests. The idea was to create a hybrid between TimeDeltaParameter and FloatParameter. New proposal:
|
My
luigi.cfg
looked like this:Now luigi can parse the 10 seconds but it can't pass the 3600 seconds. That's surprising.
Turns out I had to specify
max_keep_alive_idle_duration: 1 hour
but that can't be found in the documentation without inspecting the source code. Yes, it's in the docs for the TimedeltaParameter but nowhere does it say that this option is interpreted as a TimedeltaParameter.However, it would be better if all the config values specifying a time can be given in the same format. I'll see if I can get in a PR to solve this. The idea would be for all times to accept all formats accepted by TimeDeltaParameter plus to interpret an integer as seconds.
The text was updated successfully, but these errors were encountered: