Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

About Abp.Hangfire and AbpTimer #2440


User avatar
0
barclay created

I want to use Abp.Hangfire, I need execute the backgroundworker at 01:00 AM every day, so how can I set the AbpTimer.Period?


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can directly use Hangfire for this. See <a class="postlink" href="http://docs.hangfire.io/en/latest/background-methods/performing-recurrent-tasks.html">http://docs.hangfire.io/en/latest/backg ... tasks.html</a> You can use a cron expression which you can generate it here <a class="postlink" href="http://www.cronmaker.com/">http://www.cronmaker.com/</a>

  • User Avatar
    0
    barclay created

    How can I set a cron expression for AbpTimer.Period?

  • User Avatar
    0
    barclay created

    <cite>ismcagdas: </cite> Hi,

    You can directly use Hangfire for this. See <a class="postlink" href="http://docs.hangfire.io/en/latest/background-methods/performing-recurrent-tasks.html">http://docs.hangfire.io/en/latest/backg ... tasks.html</a> You can use a cron expression which you can generate it here <a class="postlink" href="http://www.cronmaker.com/">http://www.cronmaker.com/</a>

    How can I set a cron expression for AbpTimer.Period?

  • User Avatar
    0
    hikalkan created
    Support Team

    AbpTimer is very simple and does not support cron. Why not using a dedicated library like Quartz (<a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Quartz-Integration">http://www.aspnetboilerplate.com/Pages/ ... ntegration</a>)

  • User Avatar
    0
    barclay created

    <cite>hikalkan: </cite> AbpTimer is very simple and does not support cron. Why not using a dedicated library like Quartz (<a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Quartz-Integration">http://www.aspnetboilerplate.com/Pages/ ... ntegration</a>)

    Thank you! You are right.