Skip to content

Workflow 2.47.0

Latest

Choose a tag to compare

@rmcdaniel rmcdaniel released this 01 Dec 18:29
· 12 commits to main since this release
f634f9d

2.47.0 lets queued embedded V2 activities admit external effects against the
engine's committed worker attempt. Effect admission is experimental and opt-in.
Apply the package migration before you enable it.

Upgrade notes

  • Workflow\V2\Activity has a new final public method,
    effectCapability(). Rename any application activity method with that name
    before you upgrade, because a final method cannot be overridden.
  • Migration 2026_11_30_000100_create_activity_effect_admissions adds two
    nullable proof-binding columns to activity_attempts and creates
    activity_effect_admissions. Existing attempts stay unqualified for
    effect admission. Rollback is refused after any attempt has stored a proof
    binding or any receipt or retained marker exists.
  • Admission stays off until DW_V2_ACTIVITY_EFFECT_CONSUMER names the
    application's stable consumer registration. Without that setting, or before
    the migration runs, activities keep their existing behavior and
    effectCapability() returns null.

Changes

  • A queued activity's effectCapability() handle admits each keyed external
    effect against its live, committed claim. It returns a reservation and
    provider operation identity that stay stable across retries of the same
    activity execution. Constructed or cloned activity objects receive
    no handle. Activity identifier getters remain metadata, not authentication.
    The application's authenticated consumer can look up and acknowledge
    outcomes through ActivityEffectOutcomes. (#935, #1345)
  • Embedded V2 history import refuses with target.live_current_run an import
    that would replace a live run of the same instance as its current run, by
    pointer, run number or continue-as-new lineage. It refuses with
    target.current_run_changed if the current run changes while the import locks
    the instance, and with target.current_run_missing if the instance's pointer
    names no run. Current-run pointer repair no longer moves away from a live run.
    (#1355, #1356)
  • Worker-protocol replay keeps the portable replay clock across root condition
    waits. A satisfied wait keeps the value read before it, so a first execution
    and its replay read the same time. A non-ordered timeout reads its correlated
    condition-timeout TimerFired time. Ordered-input timeouts, and Core
    ConditionWaitTimedOut records at another instant, keep the prior value.
    Unproved timer evidence leaves the clock unavailable. Workflow::now()
    retains its historical behavior. (durable-workflow/.github#215, #1358)