Feedback on Background Jobs #14292
Replies: 4 comments 5 replies
-
Related PR #11338 |
Beta Was this translation helpful? Give feedback.
-
@andrewmckaskill - Hah! - yes, indeed. I recently had to create my own background-tasks scheduler (admittedly for an older version of Umbraco) so I could launch/schedule some custom tasks for my clients, and constantly found myself wondering why this wasn't part of the standard services. If I was writing this myself, I'd certainly be looking to provide a notification extensions, so that failure (and success) notifications could be emailed from appropriate points in the custom task. I have one task at the moment, which needs to pull data from an external cloud-based accounting system, and push it to an MS-Dataverse table - so that employees can run business-critical PowerApps in the mornings. Both external services require a heap of OAuth gymnastics on top of their API complexities, and so there are multiple potential failure points. Knowing that the data may not be current was important and so required a bit of extra code that I would have made into a common service except for the age of the platform. |
Beta Was this translation helpful? Give feedback.
-
Yes, I was speaking in broad terms of what I would have needed to do, but I suspect that in my case sending an email is simply a custom response to a notification event. |
Beta Was this translation helpful? Give feedback.
-
Love the dashboard idea. and a run now option would be handy too. One QoL I'd add would be to set the task to run at a specific time and/or day |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I had a discussion with @nul800sebastiaan at the Hackathon last November around improving the visibility and usability of the background services in Umbraco. We broadly agreed that the following would be a great set of goals to start with:
I've spent some time looking at the hosted services now and come up with the following as a set of steps to start with (hopefully broken down enough that each can turn into a story by itself):
Refactor existing jobs (DRAFT PR: Refactor hostedServices into background jobs #14291)
IHostedService
Create simple dashboard
Create alternate implementation engines for Quartz and Hangfire ( these could start as packages if need be )
I'd also like to investigate whether or not some of these jobs could be farmed out to one/multiple external process as well, like a functions app or a windows service/daemon (for on-prem installations) - but that's a separate discussion in it's own right.
I'm aware that lots of our community have implemented background services of various kinds in both umbraco projects as well as standalone projects, so please fire ideas, questions, and comments at me 😄
Beta Was this translation helpful? Give feedback.
All reactions