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
fix: poll for cancelled status instead of asserting immediately
Background workers in replay mode start processing very quickly, creating
a race between cancel() and the worker picking up the task. Even calling
cancel immediately isn't fast enough to guarantee it wins the race.
Solution: Poll for 'cancelled' status (similar to test_background_completes)
instead of asserting immediately after calling cancel(). This handles the
case where the worker has already started processing when cancel() is called.
Signed-off-by: Charlie Doern <cdoern@redhat.com>
0 commit comments