Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions clients/python/src/taskbroker_client/worker/workerchild.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,15 @@ def await_task_futures(task: ActivationWithPendingFutures) -> None:
)

def check_task_future_completion() -> None:
# Records how many activations with pending producer futures
# the worker child has.
metrics.gauge(
"taskworker.worker.activations_with_pending_futures",
len(pending_task_futures),
tags={
"processing_pool": processing_pool_name,
},
)
if len(pending_task_futures) > 0:
for task in pending_task_futures.copy():
if all([f.done() for f in task.pending_futures]):
Expand Down
Loading