配置正在执行的迟发型每15分钟cron作业 [英] Configure cron job that is executing every 15 minutes on Hangfire

查看:449
本文介绍了配置正在执行的迟发型每15分钟cron作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的迟发型和喜欢的软件非常多!但有一件事,我缺少的是如何添加执行每隔几分钟(如每隔15分钟)重复的工作。有没有办法实现这个

I am using Hangfire and like the software very much! But one thing I am missing is how to add a recurring job that executes every few minutes (e.g. every 15 minutes). Is there a way to achieve this?

推荐答案

目前我使用这种方法:

RecurringJob.AddOrUpdate(() => Console.Write("Recurring"), "*/15 * * * *");

和工作就像一个魅力。

参考我在迟发型论坛的问题:的 http://discuss.hangfire.io/t/how-to-create-cron-job-that-is-executing-every-15-minutes/533

Reference to my question in Hangfire forums: http://discuss.hangfire.io/t/how-to-create-cron-job-that-is-executing-every-15-minutes/533

这篇关于配置正在执行的迟发型每15分钟cron作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆