threadmill 0.6.2__tar.gz → 0.6.3__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.6.2 → threadmill-0.6.3}/PKG-INFO +1 -1
  2. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/_version.py +3 -3
  3. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/executor.py +20 -4
  4. {threadmill-0.6.2 → threadmill-0.6.3}/LICENSE +0 -0
  5. {threadmill-0.6.2 → threadmill-0.6.3}/README.md +0 -0
  6. {threadmill-0.6.2 → threadmill-0.6.3}/pyproject.toml +0 -0
  7. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/__init__.py +0 -0
  8. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/apps.py +0 -0
  9. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/backends/__init__.py +0 -0
  10. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/backends/base.py +0 -0
  11. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/backends/lua/acknowledge.lua +0 -0
  12. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/backends/lua/acquire.lua +0 -0
  13. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/backends/lua/mover.lua +0 -0
  14. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/backends/lua/reaper.lua +0 -0
  15. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/backends/redis.py +0 -0
  16. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/exceptions.py +0 -0
  17. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/inspector/__init__.py +0 -0
  18. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/inspector/app.py +0 -0
  19. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/inspector/inspector.scss +0 -0
  20. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/inspector/screens.py +0 -0
  21. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/inspector/telemetry.py +0 -0
  22. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/management/__init__.py +0 -0
  23. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/management/commands/__init__.py +0 -0
  24. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/management/commands/threadmill.py +0 -0
  25. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/retry.py +0 -0
  26. {threadmill-0.6.2 → threadmill-0.6.3}/threadmill/signals.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: threadmill
3
- Version: 0.6.2
3
+ Version: 0.6.3
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.6.2'
22
- __version_tuple__ = version_tuple = (0, 6, 2)
21
+ __version__ = version = '0.6.3'
22
+ __version_tuple__ = version_tuple = (0, 6, 3)
23
23
 
24
- __commit_id__ = commit_id = 'g9ded4014b'
24
+ __commit_id__ = commit_id = 'g814435eae'
@@ -229,11 +229,19 @@ class WorkerThread(threading.Thread):
229
229
  try:
230
230
  return task_result.task.retry(TaskContext(task_result=task_result))
231
231
  except Exception:
232
- logger.exception("Retry callback failed for task %r", task_result.id)
232
+ logger.exception(
233
+ "Retry callback failed for task '%s@%s'",
234
+ task_result.id,
235
+ task_result.task.module_path,
236
+ )
233
237
 
234
238
  def execute_task_result(self, task_result: TaskResult) -> TaskResult:
235
239
  """Execute task from task result and update result lifecycle state."""
236
- logger.info("Executing task %r", task_result.id)
240
+ logger.info(
241
+ "Executing task '%s@%s'",
242
+ task_result.id,
243
+ task_result.task.module_path,
244
+ )
237
245
  started_at = timezone.now()
238
246
  task_result = dataclasses.replace(
239
247
  task_result,
@@ -252,7 +260,11 @@ class WorkerThread(threading.Thread):
252
260
  errors=[*task_result.errors, WorkerThread.create_task_error(exception)],
253
261
  finished_at=timezone.now(),
254
262
  )
255
- logger.exception("Task failed %r", task_result.id)
263
+ logger.exception(
264
+ "Task '%s@%s' failed",
265
+ task_result.id,
266
+ task_result.task.module_path,
267
+ )
256
268
  else:
257
269
  task_result = dataclasses.replace(
258
270
  task_result,
@@ -262,7 +274,11 @@ class WorkerThread(threading.Thread):
262
274
  object.__setattr__(
263
275
  task_result, "_return_value", normalize_json(return_value)
264
276
  )
265
- logger.info("Task successful %r", task_result.id)
277
+ logger.info(
278
+ "Task '%s@%s' succeeded",
279
+ task_result.id,
280
+ task_result.task.module_path,
281
+ )
266
282
  finally:
267
283
  task_finished.send(TaskExecutor, task_result=task_result)
268
284
 
File without changes
File without changes
File without changes