Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Currently, we don't have any interface for checking the status of Tasklets. Having one would be useful for users, especially for testing.
I think a Tasklet can be in
- SUBMITTED: When the Tasklet is submitted, and waiting in the pending queue(VortexThreadPool.submit())
- RUNNING: When the Tasklet is sent to scheduled worker, and executed (RunningWorkers.launchTasklet())
- FINISHED, FAILED, CANCELLED: as the result of Tasklets.
Questions I have in mind:
- Would it be useful to store the history, so we can query the Tasklets launched before?
- Do we need to breakdown RUNNING state? For example, the Tasklet can be 1) sent to the worker, 2) pending in the worker's local queue, 3) running. IMHO, considering all above as a RUNNING state would be enough for now. Any thought?