Is there a model that stores information on the current status of a scheduled action whether it is running or not?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- Project
- MRP
This question has been flagged
Hi,
You can determine whether a scheduled action is currently running or not by checking the 'ir.cron' model (Scheduled Actions).
1) Settings -> Technical -> Scheduled Actions
2) Open any action from the list
There you can find a button "Active" In the above screenshot you
can see that it is enabled, which means scheduled action is running.
The button will be disabled for the actions which is not in the running state
Hope it helps
The question wasn't which rules are active. But which one is now currently running.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
Hello,
Do you mean in real-time or just stored?
If you mean stored go to Settings->Technical->Scheduled Actions you can see all your scheduled actions and if they are active. You can also view/change the next execution, execution interval and the number of calls etc.
Thanks,
Hi, thank you for replying. I meant the execution status of a Scheduled Action. I have a requirement to show all currently running scheduled actions but cannot see where I can pull this information.
Hello,
In Settings->Techncal->Scheduled Actions, any scheduled action which is running would have the attribute: Active = True. In list view, this is also displayed as being greyed out. This should be what you are after.
The technical model name is ir.cron.
Thanks,
Hi Jack, thanks for the reply. I was looking more of the job monitoring solution for the Scheduled Actions. I found a good fit with OCA's queue_job/queue_job_cron modules.
Here is a link to the module in case anyone else is looking. https://apps.odoo.com/apps/modules/13.0/queue_job_cron/
Regards
this thread was so painful. They want to know which scheduled actions are currently processing things *in this very instant*, *right at this moment*. lmao. Patience of a saint...
I want to know which scheduled action is currently running too, because whichever one it is, it's getting in the way of me installing a new module/app. When I click "Install" on the app, I get this error:
"Odoo is currently processing a scheduled action.
Module operations are not possible at this time, please try again later or contact your system administrator."
^ Well. Luckily the error message was seemingly accurate, and I just had to wait for whatever scheduled action to finish. I was afraid the error message was inaccurate and there was a deeper issue