Code Monkey home page Code Monkey logo

Comments (4)

glime-ai avatar glime-ai commented on September 23, 2024

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:

  1. 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 same Timer activity with different activation strategies.

  2. 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.

  3. 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.

  4. Check for Known Issues: Review the Elsa GitHub issues and discussions to see if there are any known issues related to the SingletonStrategy and Timer activities. It's possible that you might be encountering a bug that has already been reported.

  5. 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.

  6. 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.

wseegersatdealx avatar wseegersatdealx commented on September 23, 2024

While poking around it seems like IWorkflowActivationStrategy.GetAllowActivationAsync is never reached.

Have I incorrectly configured the workflow?

from elsa-core.

m03392 avatar m03392 commented on September 23, 2024

Same problem for me:

GetAllowActivationAsync() gets never called.

from elsa-core.

gribunin avatar gribunin commented on September 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.