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

Stop waiting for the status file when the process finishes #2026

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

romain-intel
Copy link
Contributor

This avoids waiting for a long time after a process crashes when using the Runner or Deployer

This avoids waiting for a long time after a process crashes when
using the Runner or Deployer
madhur-ob
madhur-ob previously approved these changes Sep 13, 2024
Copy link
Collaborator

@madhur-ob madhur-ob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

savingoyal
savingoyal previously approved these changes Sep 13, 2024
start_time = time.time()
with open(file_path, "r", encoding="utf-8") as file_pointer:
content = file_pointer.read()
while not content:
if command_obj.process.poll() is not None:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is technically a race here. I'll improve it slightly.

@romain-intel romain-intel merged commit f4f0a09 into master Sep 13, 2024
25 checks passed
@romain-intel romain-intel deleted the fix/no-wait-runner-failed branch September 13, 2024 16:00
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.

3 participants