Set an “on demand” only job in HangFire

前端 未结 4 861
粉色の甜心
粉色の甜心 2021-02-13 17:18

In Hangfire, I have successfully set recurring jobs and am able to trigger manually if I want to, thanks to the Web UI and its \"trigger\" button.

RecurringJob.A         


        
4条回答
  •  忘掉有多难
    2021-02-13 18:05

    I used this (hangfire 1.7 on .net 4.6.2)

    RecurringJob.AddOrUpdate(() => ..., "0 0 31 2 0");
    

    It shows up in the dashboard as:

    Next execution N/A

提交回复
热议问题