You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
durable: domain effects of a parent transition an actor drives are never dispatched #257
A parent transition that an actor drives can emit domain effects, such as an email or a charge. durable never dispatches them, live or on Recover:
DeliverToActor records its step with no effects.
A parent Fire driven by an actor that a Fire, RunService or Tick spawned is journaled as an entry of that step, but only the step's own results' effects go into Record.Effects.
On replay, stepEffects doesn't include the effects of re-fired parent Fires either.
So the same transition dispatches its effects when it's reached through Handle.Fire, and silently drops them when an actor drives it. #235 made Tick spawn actors, so a timer can now reach this too.
Reproduction:TestFire_DispatchesTheEffectsOfAParentFireAnActorDrove in durable/actor_fire_effects_test.go, skipped. Its skip message points at #235, which left this out of scope; it should point here.
Possible fix
Fold each journaled parent Fire's effects into its step's dispatch list after the step's own, in the order they fired, live and on replay. Give DeliverToActor the same treatment, so the effect ids are stable across replay.
Activity
fix(durable): Recover keeps a copy of the dispatched set; a typed nil…
fix(durable): dispatch effects from Start, Tick and RunService
fix(durable): dispatch effects from Start, Tick and RunService (#235)
fix(durable): dispatch the effects of a parent transition an actor dr…