How to Retrieve Task Status (Executed Successfully, Failed, etc.) in MongoDBStore #91
Unanswered
prashikdewtale10
asked this question in
Q&A
Replies: 1 comment
-
@devkral I believe you can also help here? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @tarsil,
I am currently working on implementing an API that provides the status of scheduled jobs using the asyncz library and esmerald and i am using mongodb as store. I am curious about how to retrieve the status of tasks, such as whether they have executed successfully, failed, or encountered any other issues.
I see that the MongoDBStore class in the asyncz library manages tasks in a MongoDB collection, storing the
id,
next_run_time
, andstate
of each task. However, I am unsure how to retrieve and interpret the status of each task to determine if it has executed successfully, failed, or encountered other issues.Could you provide guidance on:
How to track and retrieve the status of tasks in the MongoDBStore class.
Identifying different task statuses like executed successfully, failed, or missed.
How to add a custom field to tasks to fetch based on that specific field
Any help or documentation references would be greatly appreciated.
Thank you for your time and assistance.
Beta Was this translation helpful? Give feedback.
All reactions