Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking execution progress? #1287

Closed
orcaman opened this issue Aug 1, 2019 · 3 comments
Closed

Tracking execution progress? #1287

orcaman opened this issue Aug 1, 2019 · 3 comments

Comments

@orcaman
Copy link

orcaman commented Aug 1, 2019

Hi friends,

Is there a way of getting a list of tasks that are currently running? Our DAG is comprised of hundreds of tasks. We have logs for state change handling, so we can see when tasks have started and when they have finished. We could write a logs query to pick up the tasks that have started but haven't finished and thus presume that they are running - but is there a better way of doing this within Prefect that we're missing?

Thanks

@cicdw
Copy link
Member

cicdw commented Aug 1, 2019

Hi @orcaman! This sort of pattern requires an external monitoring system which keeps track of Task states, which is precisely where Prefect Cloud comes in. In Cloud, you can query the database for which tasks are in a Running state, and for those that are in a Running state you can inspect the latest heartbeat time to verify that the task process is still alive.

@orcaman
Copy link
Author

orcaman commented Aug 1, 2019

I guess one could implement by keeping track in-memory?

Anyways, cool. We are looking forward to the cloud to be available :-)

@cicdw
Copy link
Member

cicdw commented Aug 1, 2019

Awesome!

And yea, if you want to track your task's states in a custom way I usually recommend people implement their own state handler (which it sounds like you've essentially done).

@cicdw cicdw closed this as completed Aug 1, 2019
abrookins pushed a commit that referenced this issue Mar 15, 2022
…-ui/ts-node-10.7.0

Bump ts-node from 10.6.0 to 10.7.0 in /orion-ui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants