Skip to content

chore(tasks) Remove autoreload option from taskworker #96486

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

Merged
merged 1 commit into from
Jul 28, 2025

Conversation

markstory
Copy link
Member

Since we implemented signal handlers for SIGTERM/SIGINT --autoreload has not worked as autoreload runs the worker in non-main thread where signals handlers cannot be registered. Removing --autoreload lets devservices foreground taskworker work again.

I'll revisit autoreload in the future when I figure out how to get it to play nicely with multiprocessing.

Since we implemented signal handlers for SIGTERM/SIGINT --autoreload
has not worked as autoreload runs the worker in non-main thread where
signals handlers cannot be registered. Removing `--autoreload` lets
`devservices foreground taskworker` work again.

I'll revisit autoreload in the future when I figure out how to get it to
play nicely with multiprocessing.
@markstory markstory requested a review from a team July 25, 2025 22:03
@markstory markstory requested review from a team as code owners July 25, 2025 22:03
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 25, 2025
@markstory markstory merged commit 9f27dbf into master Jul 28, 2025
66 checks passed
@markstory markstory deleted the chore-remove-taskworker-autoreload branch July 28, 2025 14:11
Copy link

codecov bot commented Jul 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #96486      +/-   ##
==========================================
- Coverage   83.83%   83.72%   -0.11%     
==========================================
  Files       10642    10643       +1     
  Lines      614424   614468      +44     
  Branches    24127    24127              
==========================================
- Hits       515087   514461     -626     
- Misses      98956    99626     +670     
  Partials      381      381              

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants