Hi Mythz,
Is there a way to get a list of all saved recurring tasks? I couldn’t see a way to do it with IBackgroundJobs
Many thanks in advance.
Hi Mythz,
Is there a way to get a list of all saved recurring tasks? I couldn’t see a way to do it with IBackgroundJobs
Many thanks in advance.
I’ve added IBackgroundJobs.ScheduledTasks
to access the loaded Scheduled Tasks in this commit which is now available in the pre-release packages.
In the meantime you can resolve them from the jobs.db with:
using var dbJobs = jobs.OpenDb();
var tasks = dbJobs.Select<ScheduledTask>();
Ahh, I didn’t think of that. Many thanks, that will come in handy!