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

Require building tasks to complete before shutdown #3275

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

peterebden
Copy link
Member

Generally this is fine but I've occasionally seen a 'send on closed channel' from the async cache. This is because we're shutting it down while something is still trying to write to it, which seems like a Bad Idea.

This requires that every task completes before we continue. The TaskDone() call on line 79 is meant to do that, but it's rather more indirect. I can't think of a reason that this shouldn't work...

@peterebden peterebden merged commit 5e8fab1 into thought-machine:master Oct 11, 2024
14 checks passed
@peterebden peterebden deleted the fix-send-on-closed-2 branch October 11, 2024 10:01
toastwaffle added a commit to toastwaffle/please that referenced this pull request Oct 11, 2024
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.

2 participants