-
Notifications
You must be signed in to change notification settings - Fork 107
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
Added POLL_DELAY environment variable to UserConfiguration class #3421
Conversation
I'm not sure if it should be a profile based thing. Generally folks want to control this so that |
I always tend to add all properties to the UserConfiguration class to make them available in profiles and, in this case, because it already supports ENV variables. Will move it to the main Configuration object. |
71a2c83
to
3107f1f
Compare
Moved to Configuration object. |
def sessions_poll_delay | ||
poll_delay = ENV['POLL_DELAY'] | ||
poll_delay.nil? ? config.fetch(:sessions_poll_delay, '10000') : poll_delay.to_s | ||
end |
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 have a couple things here.
First can we prepend bc_
to this. That'll follow other configuration names so folks can see they all relate to batch_connect.
Secondly - I'm thinking we need some sort of check like casting to_i
to be sure it's an integer. I also think that 10000 should be the default and likely minimum too. I'd hate to see someone configure 1
and just blow up their system lol.
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.
Yes, that is better. I completed the updates
3107f1f
to
5346f13
Compare
5346f13
to
470a756
Compare
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.
Thanks for the quick turnaround on this!
Added POLL_DELAY environment variable to UserConfiguration class.
This change is backwards compatible with the environment variable.
Fixes #3413