question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hosting Elsa on Multiple Nodes: Executing workflows not working #azureservicebus

See original GitHub issue

Hi,

I have problems with the distributed execution of workflows in Elsa 2.2.1. I configured everything as it is described in the documentation, here is my configuration:

.UseServiceBus(s =>
{
    s.Configurer
        .Transport(t =>
            t.UseAzureServiceBus(
                Configuration.GetConnectionString("ElsaServiceBus"), "ElsaQueue"));
})
.ConfigureDistributedLockProvider(l => { l.UseSqlServerLockProvider(Configuration.GetConnectionString("ElsaServerDb")); })
.UseRebusCacheSignal()
.AddQuartzTemporalActivities(configureQuartz: quartz => quartz.UsePersistentStore(store =>
{
    store.UseJsonSerializer();
    store.UseSqlServer(Configuration.GetConnectionString("ElsaServerDb"));
    store.UseClustering();
}))

The issue is that when I execute some workflow by api it sends an event to the “execute-workflow-definition-request-default” queue and it never reads from this queue to actually execute it.

I found that probably there is incoherency between the QueuingWorkflowDispatcher and the CreateSubscriptions in the queue naming, but maybe there is something more, because I managed to replace the QueuingWorkflowDispatcher with my own implementation but still nothing happens after sending an event to the queue with the “execute-workflow-default” name.

Is something missing in my configuration or is there some bug?

We would like to use Elsa in our company but without distributed nodes, we cannot do it 😦

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
progala2commented, Sep 14, 2021

The fix confirmed. Thanks for your help!

1reaction
sfmskywalkercommented, Sep 2, 2021

Could be a bug with the queue names being registered. Will have to investigate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hosting Elsa on Multiple Nodes
One of the most important reasons of running multiple Elsa nodes besides redundancy is to increase throughput. The more nodes you have, the...
Read more >
Newest 'elsa-workflows' Questions - Stack Overflow
[elsa-workflows] I am developing a windows application with .Net framework without any Web APIs. This will be a long running workflow.
Read more >
elsa-2 - Elsa.Activities.AzureServiceBus 2.11.0-preview.38
Elsa Core is a workflows library that enables workflow execution in any .NET Core application. Workflows can be defined using code and using...
Read more >
What's new in Elsa 2.0
In Elsa 2, workflows now operate smoothly across multiple nodes thanks to ... Once the container is running, simply go to http://localhost:13000 and...
Read more >
Elsa Workflows Community Meeting 30 - YouTube
Your browser can't play this video. Learn more.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found