elsa-workflows / elsa-workflows/elsa-core

[ENH] ActivityProviders are being executed mutiple times

Open
#5,980 0 comments 0 reactions 0 assignees View on GitHub
enhancement triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

## Enhancement Request

### Enhancement Overview
ActivityProviders are being executed multiple times, i.e. they are being called twice at service startup, and every time any workflow is published, retracted or deleted, and in some cases, when a new workflow is created.

### Proposed Enhancement
ActivityProviders should be executed when the service starts up (and if possible, when manually triggered) as some ActivityProviders have extensive work to do and this might delay the publication, retraction, deletion and the creation of workflows.

### Alternative Solutions
Developers can check if there were any changes to their logic, and re-execute their code if any, otherwise they can just return from the method.

Contributor guide

Open the contributing guide

Research direction

Start by tracing where ActivityProviders are invoked during service startup and workflow publish, retract, delete, and creation operations. Compare the duplicate calls and determine how a manual trigger could fit; done means providers run at startup, optionally on demand, without delaying those workflow operations.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.