Skip to content

Commit

Permalink
Expose worker tracked tasks count
Browse files Browse the repository at this point in the history
  • Loading branch information
losipiuk authored and wendigo committed Jan 8, 2025
1 parent b27dd3b commit c219ffd
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,12 @@ public ThreadPoolExecutorMBean getTaskNotificationExecutor()
return taskNotificationExecutorMBean;
}

@Managed(description = "Tracked tasks count")
public long getTrackedTasksCount()
{
return tasks.size();
}

@Managed(description = "Created tasks counter")
@Nested
public CounterStat getCreatedTasks()
Expand Down

0 comments on commit c219ffd

Please sign in to comment.