Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

get number of currently executed tasks

See original GitHub issue

Is there any way to get the number of currently executed tasks? These are no longer part of the scheduled_count or scheduled_count for the queue; as they are being actively worked on.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

coleifercommented, Nov 4, 2020 - Your post is not correct and is prone to race conditions when there are multiple workers. Signals may be executed synchronously by the worker (as part of task execution), but if you have multiple workers then the execution of the signals may be interleaved.

coleifercommented, Jan 13, 2022

Beware with Sqlite you may run into “database is locked” errors and the like, which (if unhandled correctly) will lead to your state table being corrupt/incorrect.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ExecutorService with number of running tasks - Stack Overflow
I want to get the number of tasks that are submitted to an executor service and not yet finished (i.e currently running/active or...
Read more >
Number of Remaining Tasks in the ThreadPoolExecutor
This will report the total number of tasks that are queued up and ready for execution. If we add the number of worker...
Read more >
TASK_HISTORY - Snowflake Documentation
TASK_HISTORY¶. This table function can be used to query the history of task usage within a specified date range. The function returns the...
Read more >
Task | ClearML
The term “main execution Task” refers to the Task context for current running experiment. Python experiment scripts can create one, and only one,...
Read more >
Workers Guide — Celery 3.1.11 documentation
I.e. the number is the process index not the process count or pid. ... When a worker receives a revoke request it will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found