-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quartz Scheduler is not working in v3 #4818
Comments
+1 on this for us too. |
It seems you're trying to use Quartz.NET for scheduling background activities in Elsa 3, similar to what Hangfire offers. You're looking to replace Hangfire's background activity scheduling with Quartz.NET, but facing the fact that there is no such implementation for |
@sfmskywalker I tried Quartz.NET because Hangfire is not working (every instance will trigger timer even the Hangfire is configured to use Redis). Maybe it's because I did not configure it correctly. The key requirement is, when we have multiple Elsa Server instances, the timers/scheduler can be triggered correctly. Providing working samples would be great. |
Sorry, I'm not trying to "use Quartz.NET for scheduling background activities". |
Either Hangfire or Quartz, I just want the scheduler to work correctly (for workflows created in Studio, and starts with a Timer), when multiple instances are running. So Each single workflow will be run exact once at certain time (based on the Timer). Currently neither of them are working:
@sfmskywalker Otherwise we have to implement an indenpendant service as a Timer and then trigger workflows by HttpEndPoint or MassTransit Message. |
Thank you for highlighting the issue with Quartz and Hangfire schedulers. I understand the critical nature of this problem for running workflows reliably across multiple instances. While I'd like to address this promptly, my current workload, primarily from commitments to paying customers, limits my immediate availability to tackle this issue in-depth. I recognize the importance of a working scheduler and will aim to revisit this as soon as possible. In the meantime, I encourage community contributions and discussions for potential workarounds or solutions. Thanks for understanding. |
When you have multiple servers and want Quartz to work properly you should add some persitence to elsa.UseQuartz() call using the database of your preferences. There were some issue with MySQL/Postgres/SQLServer but those should be already fixed in recent previews. |
Just got a chance to test, the Quartz scheduler is working now. |
In Elsa v3.0.3, I added below code, but the Timer is never triggered.
For Hangire, we have runtime.UseHangfireBackgroundActivityScheduler(), which uses Hangfire to schedule background activities.
But I did not find a similar funciton for Quartz.
// Use timers. elsa.UseQuartz(); elsa.UseScheduling(scheduling => scheduling.UseQuartzScheduler());
The text was updated successfully, but these errors were encountered: