Skip to content

Fix #1801: after_gather plugins executed multiple times - #1802

Merged
andreleblanc11 merged 1 commit into
developmentfrom
issue1801
Oct 28, 2026
Merged

andreleblanc11 merged 1 commit into
developmentfrom
issue1801

Conversation

@reidsunderland

Copy link
Copy Markdown
Member

Fix #1801, if we agree that it's actually a bug.

This changes the code so after_gather callbacks are executed after gathering. Currently they get triggered multiple times (once per gather plugin, which is usually 3 in subscribing components: [<bound method Message.gather of <sarracenia.flowcb.gather.message.Message object at 0x7f13fee45400>>, <bound method Retry.gather of <sarracenia.flowcb.retry.Retry object at 0x7f13fee459b0>>, <bound method Log.gather of <sarracenia.flowcb.log.Log object at 0x7f13fe5ab518>>]).

… it so it's only called when gather is actually done
@github-actions

Copy link
Copy Markdown

Test Results

410 tests   409 ✅  1m 49s ⏱️
  1 suites    1 💤
  1 files      0 ❌

Results for commit 3bed7a9.

@andreleblanc11 andreleblanc11 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've known this was a problem for a while, but it didn't affect the output of the plugin I was working on so I never bothered to fix it. This seems like a good fix at first glance.

@reidsunderland

Copy link
Copy Markdown
Member Author

Every test is failing, but it's because sarrac is not installing. Launchpad is probably down (again). I'll wait until next week to merge but I'm testing on ddsr-dev.

@andreleblanc11
andreleblanc11 merged commit 182444f into development Oct 28, 2026
@andreleblanc11
andreleblanc11 deleted the issue1801 branch October 28, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

after_gather callbacks are run once per gather plugin

2 participants