threadmill 0.8.3__tar.gz → 0.8.4__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.
- {threadmill-0.8.3 → threadmill-0.8.4}/PKG-INFO +1 -1
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/_version.py +3 -3
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/executor.py +2 -17
- {threadmill-0.8.3 → threadmill-0.8.4}/LICENSE +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/README.md +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/pyproject.toml +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/__init__.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/apps.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/backends/__init__.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/backends/base.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/backends/lua/acknowledge.lua +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/backends/lua/acquire.lua +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/backends/lua/mover.lua +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/backends/lua/reaper.lua +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/backends/redis.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/exceptions.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/inspector/__init__.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/inspector/app.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/inspector/inspector.scss +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/inspector/screens.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/inspector/telemetry.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/management/__init__.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/management/commands/__init__.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/management/commands/threadmill.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/retry.py +0 -0
- {threadmill-0.8.3 → threadmill-0.8.4}/threadmill/signals.py +0 -0
|
@@ -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.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 8,
|
|
21
|
+
__version__ = version = '0.8.4'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 8, 4)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'g071a4ce76'
|
|
@@ -426,11 +426,6 @@ class WorkerThread(threading.Thread):
|
|
|
426
426
|
|
|
427
427
|
def execute_task_result(self, task_result: TaskResult) -> TaskResult:
|
|
428
428
|
"""Execute task from task result and update result lifecycle state."""
|
|
429
|
-
logger.info(
|
|
430
|
-
"Executing task '%s@%s'",
|
|
431
|
-
task_result.id,
|
|
432
|
-
task_result.task.module_path,
|
|
433
|
-
)
|
|
434
429
|
started_at = timezone.now()
|
|
435
430
|
task_result = dataclasses.replace(
|
|
436
431
|
task_result,
|
|
@@ -442,7 +437,7 @@ class WorkerThread(threading.Thread):
|
|
|
442
437
|
|
|
443
438
|
try:
|
|
444
439
|
return_value = WorkerThread.call_task(task_result)
|
|
445
|
-
except Exception as exception:
|
|
440
|
+
except Exception as exception: # noqa: BLE001
|
|
446
441
|
task_result = dataclasses.replace(
|
|
447
442
|
task_result,
|
|
448
443
|
status=TaskResultStatus.FAILED,
|
|
@@ -452,11 +447,7 @@ class WorkerThread(threading.Thread):
|
|
|
452
447
|
],
|
|
453
448
|
finished_at=timezone.now(),
|
|
454
449
|
)
|
|
455
|
-
|
|
456
|
-
"Task '%s@%s' failed",
|
|
457
|
-
task_result.id,
|
|
458
|
-
task_result.task.module_path,
|
|
459
|
-
)
|
|
450
|
+
task_finished.send(TaskExecutor, task_result=task_result)
|
|
460
451
|
else:
|
|
461
452
|
task_result = dataclasses.replace(
|
|
462
453
|
task_result,
|
|
@@ -466,12 +457,6 @@ class WorkerThread(threading.Thread):
|
|
|
466
457
|
object.__setattr__(
|
|
467
458
|
task_result, "_return_value", normalize_json(return_value)
|
|
468
459
|
)
|
|
469
|
-
logger.info(
|
|
470
|
-
"Task '%s@%s' succeeded",
|
|
471
|
-
task_result.id,
|
|
472
|
-
task_result.task.module_path,
|
|
473
|
-
)
|
|
474
|
-
finally:
|
|
475
460
|
task_finished.send(TaskExecutor, task_result=task_result)
|
|
476
461
|
|
|
477
462
|
return task_result
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|