Repository navigation
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\Activityhas 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_admissionsadds two
nullable proof-binding columns toactivity_attemptsand 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_CONSUMERnames the
application's stable consumer registration. Without that setting, or before
the migration runs, activities keep their existing behavior and
effectCapability()returnsnull.
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 throughActivityEffectOutcomes. (#935, #1345) - Embedded V2 history import refuses with
target.live_current_runan 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_changedif the current run changes while the import locks
the instance, and withtarget.current_run_missingif 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-timeoutTimerFiredtime. Ordered-input timeouts, and Core
ConditionWaitTimedOutrecords 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)