backstage icon indicating copy to clipboard operation
backstage copied to clipboard

🚀 Feature: Devtools Backend Tasks Status

Open billabongrob opened this issue 1 year ago • 8 comments

🔖 Feature description

In the devtools plugin, it would be nice to see the backend tasks (ref table: backstage_backend_tasks__tasks) that are upcoming, the status of previously run tasks, and potentially, the ability to change the date and time when the task will run again.

🎤 Context

In our use case, it's helpful to not have to go to the database directly to view when these tasks are scheduled to run. Additionally, updating them directly in the DB to force the task to run is error prone and offers a lot of room for trouble.

✌️ Possible Implementation

Another tab on the DevTools page showing scheduled jobs.

👀 Have you spent some time to check if this feature request has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

No, but I'm happy to collaborate on a PR with someone else

billabongrob avatar Apr 15 '24 18:04 billabongrob

Hi! This has been asked for before but there are a few missing pieces. The scheduler is plugin scoped so its state is local to the plugin itself. It also does not have an API. There also is no framework way of enumerating all plugins :)

Which means that the devtools wouldn't have a way of actually gathering the information!

There's been some discussion about making it possible to enumerate the installed plugins reliably but it's not been prioritised yet. When that's in place, we could add the rest of the pieces.

freben avatar Apr 15 '24 19:04 freben

We have our own service that collects all the schedulers from all plugins so we can show these on the devtools page and also trigger the tasks manually. Not very beautiful way of doing this but best for now :D

drodil avatar Apr 16 '24 12:04 drodil

We have our own service that collects all the schedulers from all plugins so we can show these on the devtools page and also trigger the tasks manually. Not very beautiful way of doing this but best for now :D

Would you mind sharing more details on this service? We would like a similiar feature, with the possibility of triggering the tasks as well

alper98 avatar Apr 17 '24 20:04 alper98

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jun 16 '24 20:06 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 15 '24 21:08 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 18 '24 08:10 github-actions[bot]

There's been some discussion about making it possible to enumerate the installed plugins reliably but it's not been prioritised yet. When that's in place, we could add the rest of the pieces.

Are there any updates to this with the new backend system?

alper98 avatar Oct 20 '24 06:10 alper98

No, the backend system in and of itself didn't implement that feature. It'll be nicer to build the feature upon that system, but no, it's not in place.

freben avatar Oct 20 '24 10:10 freben

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 19 '24 10:12 github-actions[bot]