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
TriggerEvent fires, and then defers a second time (doesn't fire a second time though). #18392
Six tasks deferred for a random (but deterministic) amount of time, and the triggerer fired six events. Two of those events then deferred a second time, which wasn't necessary because they had already fired. Looks like a race condition.
Note that most deferrals only appear once, but the ones for "Aligator" and "Bear" appear twice.
What you expected to happen
Six tasks deferred, six tasks fires, no extra deferrals.
How to reproduce
Run the dag in this gist with the kubernetes executor (be sure there's a triggerer running). Notice that some of the triggerer log messages appear nore than once. Those represent superfluous computation.
Yup, @MatrixManAtYrService and I discussed this yesterday. It's not a bad bug - triggers are designed to be re-entrant, and it won't resume the task twice - just something that needs cleaning up a little to save some cycles.
Activity
kaxil commentedon Sep 20, 2021
cc @andrewgodwin
andrewgodwin commentedon Sep 21, 2021
Yup, @MatrixManAtYrService and I discussed this yesterday. It's not a bad bug - triggers are designed to be re-entrant, and it won't resume the task twice - just something that needs cleaning up a little to save some cycles.