Questions tagged [ncron]

NCron is a light-weight library for building and deploying scheduled background jobs on the .NET server platform. The goal is to hide the details about scheduling, timers and threads, letting you focus on implementing the actual jobs/tasks.

NCron is a light-weight library for building and deploying scheduled background jobs on the .NET server platform. The goal is to hide the details about scheduling, timers and threads, letting you focus on implementing the actual jobs/tasks.

13 questions
33
votes
4 answers

Configure cron job that is executing every 15 minutes on Hangfire

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?
Nikolay Kostov
  • 16,433
  • 23
  • 85
  • 123
3
votes
1 answer

Passing Arugments to NCron Job

I have an NCron service that is running on a set interval. I want to pass a variable to the job, but I haven't been able to figure out how. I also didn't see any information in the NCon Wiki. Is it possible to pass any arguments to the NCron…
buzzzzjay
  • 1,140
  • 6
  • 27
  • 54
2
votes
1 answer

Two Timer Triggers on Azure Function With Params

We have two timer triggers an Azure function - Trigger A and Trigger B. If Trigger A is defined "first", it runs and Trigger B doesn't. Likewise, if Trigger B is defined first, it runs and Trigger A does not. This leads to two questions: Can an…
VSO
  • 11,546
  • 25
  • 99
  • 187
2
votes
4 answers

Running an azure function on a specific time for only once?

So I'm working on sending mobile app push notifications and I've already set up Azure Notification hub, but I wanted to do scheduling in it, I understand there's an option in build in azure to do that, since it costs 200$ i decided to create Azure…
Venky
  • 1,929
  • 3
  • 21
  • 36
2
votes
1 answer

NCron - cannot see job

I want to be able to run a function that deletes from my database every say minute. I would use a SQL job, but I only have the resource of SQL Server 2008 Express. So I am using an ncron job (which I havnt too much experience with). My code…
CoolSteve
  • 261
  • 1
  • 4
  • 11
2
votes
1 answer

How to run only a single instance of NCron job at any time

I'm exploring NCron to be used as a scheduler host for running several sftp jobs. Is there any way to restrict the job from running if already an existing instance is running? I have gone through the wiki but can't find any details on this.
lyf
  • 85
  • 5
2
votes
1 answer

NCron default logger writes to Event Log, throws SecurityException

Simple NCron service: class Program { static void Main(string[] args) { var schedService = new SchedulingService(); schedService.At("* * * * *").Run(); // run every minute schedService.Start(); …
epalm
  • 4,283
  • 4
  • 43
  • 65
1
vote
1 answer

NCron .NET Scheduling Issue

I'm trying to use NCron scheduling framework but it does not get past the Bootsrap. Shoult NCron load this ServiceSetup method dynamically? I suspect that I am simply not using the correctly but I am following the limited examples o the…
Nate
  • 2,044
  • 4
  • 23
  • 47
1
vote
0 answers

C# how to access non-public members for NCrontab?

How to access non-public members for NCrontab ? string time_A = "20,25,30 20 * * 1-5"; var schedule = NCrontab.CrontabSchedule.Parse(time_A); I can see Non-Public members of 'schedule' from the debug, but I want to get value of _day and…
0
votes
0 answers

azure function running locally - cron timer not using UTC

I have an azure function timer with the following cron expression: '0,30 * 0-8,21-23 * * *'. I.e. every 30 seconds from 0-8 and 21-23 UTC (or at least I expect it to be UTC). But now when I run my function locally using func start, I get the…
gatapia
  • 3,574
  • 4
  • 40
  • 48
0
votes
1 answer

NCron expression "0 0/5 19-7 * * Mon,Tue,Wed" failed to parse azure functions

My Cron expression is: 0 0/5 19-7 * * Mon,Tue,Wed This passed in the following cron expression helper websites https://ncrontab.swimburger.net/ https://crontab.guru However this fails with following error when printing print next 50…
ram4sof
  • 365
  • 1
  • 4
  • 14
0
votes
1 answer

Weird version conflict: The type 'CrontabSchedule' exists in both 'NCrontab.Signed, Version=3.2.20120.0' and 'NCrontab, Version=3.2.20120.0'

I am trying do a very simple thing in console app: using Microsoft.Azure.WebJobs.Extensions.Timers; using NCrontab; using System; namespace ConsoleApp3 { class Program { static void Main(string[] args) { var…
Cindy Pau
  • 13,085
  • 1
  • 15
  • 27
0
votes
2 answers

MVC scheduled mail sending

I have got an ASP.NET MVC 4 application, and I want it to send a report e-mail every week. I've read about Quartz.NET, but it's too powerful for this easy task. Now I'm trying to use NCron, but it requires an initialiser in the Main() method (with…
Egor Shoba
  • 95
  • 1
  • 8