Skip to content

workflow@5.7.1

Choose a tag to compare

@github-actions github-actions released this 20 Nov 20:43
Immutable release. Only release title and notes can be modified.
fb1ef71

@workflow/core@5.7.1

  • #5502 16c62b4 @pranaygp - Throw DynamicWorkflowsNotEnabledError instead of WorkflowRuntimeError when dynamic workflows are not enabled, at start() and on delivery, so a run that fails on it is recorded as USER_ERROR instead of RUNTIME_ERROR. Code that caught this refusal with WorkflowRuntimeError.is(err) should check DynamicWorkflowsNotEnabledError.is(err) instead.
  • #5618 bad8cf0 @VaguelySerious - An abort published by a workflow or a step reaches the inline steps running in the same process directly, so a race's loser on a zero-retention run is still aborted when the run's end clears the abort stream before the step reads it.
  • #5643 a5e6933 @VaguelySerious - Close a remaining spec 9 run-ahead gap: an incremental read of the event log could bring a committed event to a slot the orchestrator held another event's speculative copy at, drop it, and let a pass run before the log was repaired. A read now follows the same rule as the live feed and a write's answer, and the repair runs before the next pass.
  • #5627 b5fa392 @VaguelySerious - Fix spec 9 runs that failed with CORRUPTED_EVENT_LOG ("Workflow replay diverged …" or "has a hole at slot …"), or never completed, after the orchestrator ran ahead of its writes while the live event feed delivered one of those writes before its answer. The orchestrator then placed later speculative events at the wrong slots, where two events could share an id and one of them, a step's outcome among them, was dropped from the log the workflow consumed. Each position is now counted once, no two events share a slot, a step outcome still being written is taken in before any speculative one placed after it, and a committed event is never dropped in favour of a speculative one.

@workflow/cli@5.3.1

  • #5635 004ee80 @pranaygp - The CLI banner says "This is a beta release" only for beta versions (such as 5.0.0-beta.58), not for stable 5.x releases. The update notice now suggests workflow@latest instead of workflow@<@workflow/cli version>, which could name an older workflow release than the one installed

@workflow/world-postgres@5.4.1

  • #5618 bad8cf0 @VaguelySerious - The invoke executor's wake and delivery check use the configured GRAPHILE_WORKER_SCHEMA instead of always graphile_worker, as the rest of the World does.
  • #5618 bad8cf0 @VaguelySerious - A zero-retention run's data is purged after its terminal write commits, so a race's loser settling at the same moment can no longer deadlock the purge. A backstop job committed with the terminal write retries the purge if the process stops first or the purge fails; any deployment's workers run it, and Kubernetes scaling and pruning keep the run's version until it has run.
  • #5626 7d710a5 @VaguelySerious - Add skipWorkers (WORKFLOW_POSTGRES_SKIP_WORKERS=1): a process that starts the World without running workers. It can still start runs, resume hooks, cancel runs and read them. Processes with workers on the same database, jobPrefix and deploymentId (when one is set) execute those runs, and recover the ones it didn't enqueue the next time they start.

@workflow/errors@5.1.5

  • #5502 16c62b4 @pranaygp - Add DynamicWorkflowsNotEnabledError, a fatal, non-runtime error whose message says how to enable dynamic workflows with WORKFLOW_EXPERIMENTAL_DYNAMIC_WORKFLOWS=1.

@workflow/nest@5.1.11

  • #5438 5dc1c88 @NishitaSikka - workflow-nest init warns when the @swc/core that nest build uses is missing or is not 1.15.x, and prints the install command for the project's package manager, run where @nestjs/cli is installed (the workspace root, in a monorepo that installs it there)