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

fix: Avoid hanging forever in Task::follow_logs if the task is complete #46

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

swlynch99
Copy link
Contributor

This was waiting for a durable:task-complete notification before exiting. However, if the task was already complete then it would never get an appropriate notification and so it would never exit.

By checking before entering the loop we can ensure we exit if the task has already completed.

This was waiting for a durable:task-complete notification before
exiting. However, if the task was already complete then it would never
get an appropriate notification and so it would never exit.

By checking before entering the loop we can ensure we exit if the task
has already completed.
@swlynch99 swlynch99 enabled auto-merge (squash) September 6, 2024 23:03
@swlynch99 swlynch99 merged commit 1a2f4c2 into main Sep 6, 2024
7 checks passed
@swlynch99 swlynch99 deleted the sean/stop-following-on-exited-task branch September 6, 2024 23:05
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.

1 participant