github elsa-workflows/elsa-core 3.10.3

38 minutes ago

Compare: 3.10.2...3.10.3

Elsa 3.10.3 — Release Notes

Patch release for the 3.10 line. Core, Studio and Extensions packages are published together as 3.10.3. Upgrade the Elsa.* packages you use from 3.10.1 or 3.10.2 to 3.10.3 together. No database migrations are added in this release.

The headline: HTTP workflow resumes are more predictable, Secrets and Connections migrations honour a custom EF Core schema, workflow imports return clear validation errors, and Proto.Actor clusters keep the tenant on every message. If you call HTTP workflow endpoints from clients that retry, or run Secrets on a custom schema, read the upgrade notes.


🌟 Highlights

  • HTTP workflow resumes behave predictably. Resuming an instance that has already finished returns 404 instead of running it again. A request for a bookmark that has already been used gets 404, and a request that can't get the instance within the configured limit gets 409. (#9288, #9308)
  • Secrets and Connections migrations use your configured schema. On a custom EF Core schema, Secrets and Connections no longer hard-code Elsa, so you no longer have to keep them on the default schema. (#9151)
  • Workflow imports return validation errors. Malformed JSON, JSON null or an unreadable ZIP in POST /elsa/api/workflow-definitions/import-files now returns Elsa's standard HTTP 400 validation response naming the file, instead of HTTP 500, and nothing is imported when any selected file can't be read. (#9198)
  • Proto.Actor keeps the tenant on every message. Actor messages carry the tenant they were sent from again, and messages for different tenants arriving at the same time each run in their own tenant scope. (#9307)

🐛 Fixes

HTTP workflows

  • Resuming an HTTP workflow instance that has already finished returns 404 instead of re-running it. (#9288)
  • HTTP bookmark resumes reload the instance and check that the bookmark is still current before running. A request that finds the bookmark consumed gets 404; a request that can't get the instance lock in time gets 409. A shorter positive HTTP Endpoint request timeout also caps the wait. (#9308)

Workflow API

  • Importing workflow files with malformed JSON, JSON null or invalid ZIP data returns HTTP 400 with a message identifying the file, and no partial import happens. (#9198)

Persistence and migrations

  • Later Secrets migrations (all five providers) and the Connections PostgreSQL Initial migration use the configured schema instead of Elsa. (#9151)
  • EF Core applies the existing rule for shared (TenantId = "*") records after it assigns the current tenant to a new record, so the check always looks at the tenant the record is actually saved with. No schema or data migration is needed. (#9309)

Actors and tenancy

  • Proto.Actor messages keep their tenant header, and each receiver enters its own tenant scope, so concurrent messages for different tenants no longer affect each other. Standalone actors without multitenancy are unchanged. (#9307)

Build

  • The repository pins the .NET 10 SDK (10.0.100, rollForward: latestFeature) in a root global.json, so building from source never picks up a .NET 11 SDK. This doesn't change the packages. (#9268)

⚠️ Upgrade notes

Upgrade the Elsa. packages you use to 3.10.3 together.* No new database migrations.

  • HTTP bookmark resumes can return 409. A bookmark request that can't get the instance lock within the configured limit, or within a shorter positive HTTP Endpoint request timeout, gets HTTP 409. A request for a bookmark that has already been consumed, or for an instance that has finished, gets HTTP 404. Clients that retry should treat 409 as "try again later" and 404 as "already handled". Each resume also does one extra instance read. Workflow API
  • Secrets on a custom schema. If you kept Secrets or Connections on the Elsa schema because of #8807, they now follow your configured schema. Check where your existing Secrets and Connections tables live before you change the schema setting for them.
  • Custom code that writes shared EF Core records. Writing or deleting a TenantId = "*" record still needs a host operation inside SharedTenantWriteScope. EF Core now applies that check to the final tenant ID, including records saved without a tenant ID. Custom host provisioning code that saves shared records should enter the scope around those writes. Shared EF Core records
  • Proto.Actor clusters. Roll every node to 3.10.3 so all nodes forward the tenant header.

🚧 Known issues

  • A user task can still remain in Completing after the workflow has finished, until the reconciler runs. The fix (#9113) is pending. (#8762)
  • Timer and cron triggers still only fire for the default tenant on the 3.10 line. The Quartz tenant-scope fix (#9125) is pending. (#9120)
  • The server images use the distributed runtime by default. A single container in Production without a distributed lock provider needs DistributedRuntime__AllowLocalLockProviderInDistributedRuntime=true. (#9266)
  • User-task actions still cannot be defined in JSON / Studio-designed workflows. (#8763)
  • Drain force-cancel still does not reach running activities through their cancellation token. (#8489)

🐳 Docker images

3.10.3 publishes elsaworkflows/elsa-server-v3 and elsaworkflows/elsa-server-and-studio-v3, tagged 3.10.3, 3.10 and latest. Set Identity__Tokens__SigningKey when running these images outside Development.

Don't miss a new elsa-core release

NewReleases is sending notifications on new releases.