-
Notifications
You must be signed in to change notification settings - Fork 220
Apply TIMEOUT_SCALE twice when needed #6825
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
base: master
Are you sure you want to change the base?
Conversation
When TIMEOUT_SCALE is set for a worker and the command line also provides the value, apply both.
ac5620d to
02939fc
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.
I guess this makes sense. (Not exactly sure what you're trying to achieve here.)
Co-authored-by: Martchus <[email protected]>
I have a job that takes a long time, and I want to finish it by overriding the timeouts from the openqa-cli command line. However, the worker already has I've run the job in a local, empty openQA instance and there the timeouts are all sufficient. It is our public worker that is under load and I want to run the job first with extended timeouts, so I can extract more suitable values from the autoinst-log.txt file. |
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 don't think it's wise to treat TIMEOUT_SCALE any different to other worker settings. I think worker settings always override other settings. That is not explicitly mentioned on https://open.qa/docs/#_variable_precedence, probably should be mentioned. However have you tried +TIMEOUT_SCALE=$higher_value to override?
I have used this command line: In the openQA GUI, the Settings tab shows The line I tried this: I also tried this: |
|
And additionally: I've multiplied both factors, because the invoker of the CLI cannot know which worker will get the task. Possible scenario: The openqa-cli command has 'TIMEOUT_SCALE=3'. If worker 1 gets the task, the value should be 3, but if worker 2 gets the task, the value should be 6. |
When TIMEOUT_SCALE is set for a worker and the command line also provides the value, apply both.