threadmill 0.8.1__tar.gz → 0.8.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. {threadmill-0.8.1 → threadmill-0.8.2}/PKG-INFO +1 -1
  2. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/_version.py +3 -3
  3. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/executor.py +7 -1
  4. {threadmill-0.8.1 → threadmill-0.8.2}/LICENSE +0 -0
  5. {threadmill-0.8.1 → threadmill-0.8.2}/README.md +0 -0
  6. {threadmill-0.8.1 → threadmill-0.8.2}/pyproject.toml +0 -0
  7. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/__init__.py +0 -0
  8. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/apps.py +0 -0
  9. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/backends/__init__.py +0 -0
  10. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/backends/base.py +0 -0
  11. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/backends/lua/acknowledge.lua +0 -0
  12. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/backends/lua/acquire.lua +0 -0
  13. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/backends/lua/mover.lua +0 -0
  14. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/backends/lua/reaper.lua +0 -0
  15. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/backends/redis.py +0 -0
  16. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/exceptions.py +0 -0
  17. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/inspector/__init__.py +0 -0
  18. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/inspector/app.py +0 -0
  19. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/inspector/inspector.scss +0 -0
  20. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/inspector/screens.py +0 -0
  21. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/inspector/telemetry.py +0 -0
  22. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/management/__init__.py +0 -0
  23. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/management/commands/__init__.py +0 -0
  24. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/management/commands/threadmill.py +0 -0
  25. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/retry.py +0 -0
  26. {threadmill-0.8.1 → threadmill-0.8.2}/threadmill/signals.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: threadmill
3
- Version: 0.8.1
3
+ Version: 0.8.2
4
4
  Summary: The most reliable backend for Django's task framework.
5
5
  Keywords: Django,tasks,worker
6
6
  Author-email: Johannes Maron <johannes@maron.family>
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.8.1'
22
- __version_tuple__ = version_tuple = (0, 8, 1)
21
+ __version__ = version = '0.8.2'
22
+ __version_tuple__ = version_tuple = (0, 8, 2)
23
23
 
24
- __commit_id__ = commit_id = 'g9c8ce3fb9'
24
+ __commit_id__ = commit_id = 'gdff213884'
@@ -208,7 +208,13 @@ class TaskExecutor:
208
208
  worker.join(timeout=0)
209
209
  if self.exit_empty:
210
210
  continue
211
- self.worker_processes[index] = self.create_worker_process()
211
+ try:
212
+ self.worker_processes[index] = self.create_worker_process()
213
+ except OSError as error:
214
+ # Keep the dead worker and retry on the next tick.
215
+ logger.warning(
216
+ "Unable to start worker-%d. Retrying ...", index, exc_info=error
217
+ )
212
218
  if all_dead and self.exit_empty:
213
219
  self.shutdown()
214
220
  return
File without changes
File without changes
File without changes