Publish notifications from RecurringHostedServiceBase #11272
skttl
started this conversation in
Features and ideas
Replies: 1 comment 1 reply
-
Hi @skttl.. Sounds like a good idea.. The way to archive this without introducing a breaking changes is something like this:
Then then you can use To publish events.. Note that, we need to have |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to suggest that
RecurringHostedServiceBase
should publish notifications in different areas, and publicize the period and delay fields.I think there should be notifications for
RecurringHostedServiceScheduling
RecurringHostedServiceScheduled
RecurringHostedServiceRescheduling
RecurringHostedServiceRescheduled
RecurringHostedServiceExecuting
RecurringHostedServiceExecuted
RecurringHostedServiceStopping
RecurringHostedServiceStopped
I've been looking at doing a PR for this, but in my head it ends up doing a breaking change because I need a scope to publish the notifications.
Is there any other way to do it?
What do I want that for?
What I'm envisioning is that I can create a package that uses these notifications to collect stats about the running background tasks in a project.
I want to use the stats for a hangfire-esque dashboard with an overview of the background tasks.
So I want to collect when a task I scheduled for, how long it has been running etc. I'm thinking of storing these data in an SQL table, and then pull the data to a dashboard, where I want to be able to do stuff like "Run now", and "Cancel"
Beta Was this translation helpful? Give feedback.
All reactions