Comments (4)
To address the issue you're experiencing with the SingletonStrategy
not being respected when using the Timer
activity in Elsa, it's important to ensure that the SingletonStrategy
is properly configured and that there are no conflicting configurations that might cause the workflow to behave differently than expected.
Based on the information provided, it seems like you have already configured the SingletonStrategy
for your workflow. However, the behavior you're observing suggests that new workflow instances are being created every 5 seconds, which is not the expected behavior for a singleton workflow.
Here are a few troubleshooting steps you can take:
-
Check for Conflicting Configurations: Ensure that there are no other configurations that might be overriding the
SingletonStrategy
. This includes checking for any other workflow definitions that might be using the sameTimer
activity with different activation strategies. -
Review Elsa Version: Make sure you are using a version of Elsa that supports the
SingletonStrategy
as expected. If you are using an older version, consider upgrading to the latest stable release. -
Review Quartz Configuration: Since you are using Quartz with Elsa, ensure that the Quartz configuration is correct and that it's not causing any unexpected behavior with the scheduling of the
Timer
activity. -
Check for Known Issues: Review the Elsa GitHub issues and discussions to see if there are any known issues related to the
SingletonStrategy
andTimer
activities. It's possible that you might be encountering a bug that has already been reported. -
Create a Minimal Reproducible Example: If possible, create a minimal reproducible example that isolates the issue. This can help in identifying whether the problem is with your specific configuration or with Elsa itself.
-
Seek Support from the Community: If you're unable to resolve the issue on your own, consider reaching out to the Elsa community for support. You can ask questions on the Elsa GitHub repository, Stack Overflow, or the official Elsa Slack channel.
If you have any log output or error messages, please include them as they can provide additional context that might help diagnose the issue.
If you've already tried some of these steps, please let me know which ones and what the outcomes were, so we can further narrow down the problem.
This comment was generated by Glime.
from elsa-core.
While poking around it seems like IWorkflowActivationStrategy.GetAllowActivationAsync
is never reached.
Have I incorrectly configured the workflow?
from elsa-core.
Same problem for me:
GetAllowActivationAsync() gets never called.
from elsa-core.
IWorkflowActivationStrategy.GetAllowActivationAsync
is called only from WorkflowHost.CanStartWorkflowAsync
which is not called from anywhere across the codebase. All activities which trigger new workflow, like Event, Timer, etc. just create a new workflow and do not respect the activation strategy. It seems the activation strategy doesn't affect anything at all.
from elsa-core.
Related Issues (20)
- [BUG] Can´t save CodeActivity from example. Error "..must bind to an object property or field on deserialization." HOT 1
- [BUG] `Array.Sort()` Not Working as Expected on `ExpandoObject` Fields
- [BUG] Exception when saving workflow execution logs after running alterations when using MongoDb storage HOT 3
- [BUG] `Variable` and `Input` Do Not Work for Custom `IWorkflowProvider` Implementation HOT 3
- [FEAT] Add JS Functions and Activities for Encoding/Decoding Bytes and Base64
- [BUG] workflow die when i use activity Elsa.Delay in elsa 3
- [BUG] Error when Set Variable from Json data HOT 2
- [BUG] Remote Login default from elsa 3 and add custom login page
- [BUG] Revert Variable Accessors Returning Copy Instead of Reference
- [DOC] <Parallel execution of activities>how to use this feature?
- [FEAT] Bookmarks- Custom Payload Comparison
- Garbage Elsa, you haven't helped solve so many problems for so long. What else are you doing with open source? HOT 5
- MongoDB: Bulk Write Operation Error with '$type' Field in Elsa Workflows HOT 1
- [BUG] Collection serialization 3.2.0rc5 HOT 2
- [BUG]Memory usage cannot be reduced
- [BUG] Disappear Activity Elsa V3 HOT 1
- [BUG] NullReferenceException When Parsing a HttpResponse without content-type HOT 1
- Vue Designer HOT 1
- [BUG] CustomTenantAccessor causes Http Endpoint 404 in elsa 2.14 #2861 HOT 1
- [BUG] Event payload missing when an event bookmark is resumed. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elsa-core.