Skip to content
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

timeout in update_script yaml file do not take effect #21

Open
tani-DN opened this issue Nov 6, 2023 · 0 comments
Open

timeout in update_script yaml file do not take effect #21

tani-DN opened this issue Nov 6, 2023 · 0 comments

Comments

@tani-DN
Copy link

tani-DN commented Nov 6, 2023

Hi,

the timeout in the update_script/ yaml files can not be configured.
It seams like it ist hard coded for 60 seconds.

If you change the system_update.py script on line 353 manually, like:

smt.system_schedulescriptrun("#!/bin/bash\n" + script, 360, xmlrpc.client.DateTime(datetime.datetime.now()))

you change the timeout to 360 secounds.

Otherwise the timeout is always 60 regardless of what value is entered for the timeout in the general file (for example):

begin:
timeout: 180
commands:

- cd /tmp; rm -rf *

 - /opt/susemanager/testscript.sh
state:

end:
timeout: 180
commands:
- /opt/susemanager/testscript.sh
state:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant