Hangfire: How to suspend or restart a task after it starts

Created on 23 Mar 2019  路  1Comment  路  Source: HangfireIO/Hangfire

How to suspend or restart a task after it starts

question

Most helpful comment

For killing a job you can do something like

BackgroundJob.Delete(cancellationToken);

For restart, you can write a logic in your code to create new job or you can manually re-run it from Hangfire dashboard.

>All comments

For killing a job you can do something like

BackgroundJob.Delete(cancellationToken);

For restart, you can write a logic in your code to create new job or you can manually re-run it from Hangfire dashboard.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cbmek picture cbmek  路  3Comments

nsnail picture nsnail  路  3Comments

dbones picture dbones  路  3Comments

osmanrahimi picture osmanrahimi  路  3Comments

vikramjb picture vikramjb  路  3Comments