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

(PE-35500) Support timeout for run_task and execute_catalog #109

Merged
merged 2 commits into from
Mar 24, 2023

Conversation

donoghuc
Copy link
Member

No description provided.

@donoghuc donoghuc requested a review from a team as a code owner March 24, 2023 17:16
This commit allows the run_task endpoint to accept a timeout (in seconds). If the timeout is hit the task will effectively be abandoned on the target. This is accomplished by running the task execution in a thread and waiting for that thred for "timeout" seconds. If the thread has not completed by that amount of time we send a kill signal to the thread and raise a timeout error.
This commit updates the execute_catalog endpoint to accept a timeout parameter. The timeout parameter represents the number of seconds to wait before giving up on the puppet run. This is implemented by waiting "timeout" seconds for the sub-process forked for the puppet run. If the timeout is hit the sub-process will be killed.
@donoghuc donoghuc merged commit 539b20e into puppetlabs:main Mar 24, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants