Skip to content
Discussion options

You must be logged in to vote

Currently, Elsa has two ways to execute workflows: the "core" API runs the workflow synchronously (i.e. not in the background). The other way is to run it from a background worker. To run a workflow from a background worker, you need to "dispatch" a workflow using IWorkflowDefinitionDispatcher, which means nothing more than sending a message or enqueueing a job, depending on which dispatch provider is installed.

By default, the QueueingWorkflowDispatcher is installed (in the DI service container), but when executing workflows that might take minutes to complete (while being in-memory), a better dispatcher might be the HangfireWorkflowDispatcher. That one enqueues a Hangfire job, which can…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@DavidPx
Comment options

Answer selected by DavidPx
Comment options

You must be logged in to vote
1 reply
@sfmskywalker
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants