How to Retrieve Task Status (Executed Successfully, Failed, etc.) in MongoDBStore #489
Replies: 2 comments 2 replies
-
|
@devkral I believe you recently worked on Asyncz and some extra new functionalities. Can you assist @prashikdewtale10 on this one? |
Beta Was this translation helpful? Give feedback.
-
|
I appreciate any assistance you can provide on this. Specifically, I am looking for guidance on: How to track and retrieve the status of tasks in the MongoDBStore class. Thank you for your time and assistance. |
Beta Was this translation helpful? Give feedback.
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
asynczlibrary andesmeraldand i am using mongodb as default 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, andstateof 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