Miksus / rocketry

Modern scheduling library for Python
https://rocketry.readthedocs.io
MIT License
3.23k stars 105 forks source link

ENH - API for viewing the task queue #194

Open igmriegel opened 1 year ago

igmriegel commented 1 year ago

Hello, I was wondering if there's a way besides the log to see the task queue, my idea is to be able to share in memory some information about what has been executed and what it is due to execution yet.

My idea is to be able to have data to build a dashboard with the status, but nothing too complex like airflow or prefect.

Do we have this possibility? Is it too hard to expose this kind of information? Which classes, properties or methods should I monitor to be able to have this info?

I'm sorry if it sounds too lazy, but I thought it would be easier to ask before trying to poke the whole code.

Nllii commented 1 year ago

obviously you could just log https://rocketry.readthedocs.io/en/stable/tutorial/intermediate.html?highlight=log#task-logging , It seems you want something similar to https://github.com/triggerdotdev/trigger.dev where its event driven? Is that correct?