Questions tagged [fluentscheduler]

An automated job scheduler with fluent interface for the .NET platform.

FluentScheduler is an automated job scheduler with fluent interface for the .NET platform.

See more on the Github repo.

23 questions
9
votes
2 answers

Using FluentScheduler - ASP.NET Core MVC

I currently have a simple website setup with ASP.NET Core MVC (.NET 4.6.1), and I would like to periodically do some processes like automatically send emails at the end of every day to the registered members. After doing some searching, I came…
terry96
  • 93
  • 2
  • 7
8
votes
1 answer

How to stop a task of FluentScheduler?

I am using FluentScheduler, and have a Registry class, public class UnreadAlertRegistry : Registry { public UnreadAlertRegistry(int minute, string user, bool? type) { var alertAction = new Action(() => { // show…
ar.gorgin
  • 4,765
  • 12
  • 61
  • 100
7
votes
2 answers

How to use FluentScheduler library to schedule tasks in C#?

I am trying to get familiar with C# FluentScheduler library through a console application (.Net Framework 4.5.2). Below is the code that have written: class Program { static void Main(string[] args) { JobManager.Initialize(new…
Ketan
  • 373
  • 1
  • 6
  • 18
3
votes
0 answers

Weeks() not working as expected in FluentScheduler

I'm setting up a job to run every Monday at 10 am: registry.Schedule(() => new MyJob()).ToRunEvery(0).Weeks().On(DayOfWeek.Monday).At(10,0); However he apparently runs the first time and doesn't run anymore. Am I doing the job setup correctly or is…
3
votes
1 answer

How to properly configure Simple Injector with FluentScheduler

I have following configuration for Simple Injector. public class SimpleInjectorIntegrator { private static Container container; public static Container Setup() { container = new Container(); …
3
votes
2 answers

Running a background process/task updating database

I'm trying to find the way to keep the database updated, but the method which does it consumes a lot of time so I try to create a background task to do it. I searched for solutions and I read this article of different options to run background…
Jose M Martin
  • 373
  • 1
  • 3
  • 19
2
votes
1 answer

How to get hold of the right SignalR hub in other part of application?

I am using SignalR v2.41, which is old, but I have to use it since I am also limited to using an old version of MVC. That aside, I am also using FluentScheduler to send targeted messages to clients at intervals. Problem is, I am keeping a dictionary…
2
votes
1 answer

C# Web App FluentScheduler Job won't repeat after ThreadAbortException

I'm the developer in charge of a C# web application running on IIS 10.0 and I use the FluentScheduler library to schedule my jobs. This job does a database query and then generates some files. Recently our jobs have been failing as they were running…
Kim Souza
  • 162
  • 11
2
votes
1 answer

Cannot access a disposed object exception when method invoked by fluent scheduler job

I'm getting the "Cannot access a disposed object" exception during a call to a method that uses a DI-injected dbcontext (Transient-scoped)-- most likely the dbcontext was already disposed when being invoked. The method is being invoked as a job by…
2
votes
3 answers

FluentScheduler dependency injection in constructor

I am experimenting with FluentScheduler for some background tasks in ASP.net Core API. The job should send push notifications every day at a particular time interval based on few criteria. I had gone through the document and implemented a test…
Kirk
  • 4,957
  • 2
  • 32
  • 59
2
votes
0 answers

Can I set the fluent scheduler time zone in mvc4

Please Help Me to set the execution time zone for fluent scheduler, Can I set the Time zone for the time based exection.
Babin Babu
  • 21
  • 2
2
votes
2 answers

Multiple Registries FluentScheduler

I am using FluentScheduler, and have an issue where I have 2 Registry classes, FeedRegistry SitemapRegistry FeedRegistry is supposed to run every 15min, and sitemapregistry evey 6 hours. I have this code: TaskManager.Initialize(new…
Paul
  • 1,457
  • 1
  • 19
  • 36
1
vote
2 answers

DependencyInjection issue during using FluentScheduler in .NET Core API application

I want to update data in my database each hour. So, I find good FluentScheduler library for this and create my IJob: public class InfoLoader : IJob { private readonly DataContext _db; public InfoLoader(DataContext db) { _db =…
1
vote
2 answers

FluentScheduler with Autofac

I'm trying to use a injected object (IMessageBus) inside a job in FluentScheduler. My autofac setup looks like this: var thisAssembly = Assembly.GetExecutingAssembly(); var umbracoAssembly = typeof(UmbracoApplication).Assembly; var builder = new…
Christian Bekker
  • 1,857
  • 4
  • 27
  • 43
1
vote
4 answers

How to use FluentScheduler to schedule a job from Monday to Friday

I need to schedule a job to run at 9:00AM, 12:00PM and 5:00PM on Monday to Friday only. Did not find any documentation on FluentScheduler. I can do it by having multiple(separately for 5 days) Schedule of the job but can we have single Schedule to…
gmsi
  • 1,062
  • 1
  • 16
  • 29
1
2