How to kill scheduled task

Hello all,

I can’t find solution how to populate scheduled task… Only recurring task you can find or update by custom unique identifier but my task are’nt recurring…

This is the way How I starting my jobs:

BackgroundJob.Schedule(() => new DeadlineJobService().HandleDeadline(...

Can anyone help me?

All that Schedule does is create a standard background job but starts it in the scheduled state rather than the enqueued state. The method returns the job ID of this scheduled job:

So to cancel it you can just delete the job. If you only want to cancel scheduled jobs which have not yet started, you can use the overload which takes a state predicate: