Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I need to fire a cron schedule every 70th minute. For example if one fired at 12:00pm then 2nd one should be at 1:10pm and 3rd one should be at 2:20pm and so on. How do I achieve this? Cronmaker.com suggests this, 0 0/70 * 1/1 * ? *

But when it goes past 60 minutes, it only fires every hour. Not the specfied minute which is above 60. Please advice.
Posted

1 solution

every 70 minutes - that's not really a job suitable to cron triggers - how about an Interval/Simple Trigger

C#
trigger = TriggerBuilder.Create()
    .WithIdentity("your-trigger", "your-group")
    .WithSimpleSchedule(x => x
        .WithIntervalInMinutes(70)
        .RepeatForever())
    .Build();


(you might need/want a .EndAt() clause as well)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900