-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] Duplicate executions when using the default scheduling provider in single-node environment #5600
Comments
Based on the provided context, it seems that you are encountering issues with the default scheduling provider in Elsa 3.2.0-preview.1616. Here are the steps you can take to address the issues you've described:
If you need further assistance, you can reach out to the Elsa community or maintainers through their GitHub repository or official communication channels. This comment was generated by Glime. |
Fixed via e5ba9a8 |
Description
Configuring the scheduling activities with the default provider (neither quartz nor hangfire), in a single-node environment has a few issues like duplicate executions when updating an existing workflow and errors thrown when unpolishing a workflow.
Steps to Reproduce
Scenario 1:
Unpublishing and publishing again will cause duplicate executions. Basically the first triggers will not be removed.
Scenario 2:
Changing the value of the cron will have the same effect as scenario 2.
Scenario 3:
Unpublishing a workflow will stop the timer but it is done by accident. The application will keep trying to execute the workflow but since it is unpublished it will throw this error:
The issues can be reproduced every time.
The startup configuration:
.UseScheduling()
Cron expressions used:
Expected Behavior
The expected behaviors are:
Workaround
Using the quartz provider is working as expected, without the issues mentioned.
Environment
The text was updated successfully, but these errors were encountered: