Skip to content

Add Pre and Post execution hooks on the step executor level#225

Open
OlfaKaroui wants to merge 1 commit into
nautilus:masterfrom
OlfaKaroui:post-pre-hooks
Open

Add Pre and Post execution hooks on the step executor level#225
OlfaKaroui wants to merge 1 commit into
nautilus:masterfrom
OlfaKaroui:post-pre-hooks

Conversation

@OlfaKaroui

Copy link
Copy Markdown
Contributor

Hello,

I added this functionality to enable some customization is specific cases. In our cases, we are trying to split a service, and to enable that we needed to have pre-execution hooks on the Step level to allow for the execution of intermediate operation during the migration.
I decided to make this into a proper PR, if you have any questions or changes requested please let me know

@JohnStarich

JohnStarich commented Apr 8, 2026

Copy link
Copy Markdown
Member

Hey @OlfaKaroui! Sorry for missing your PR here for so very long. I only noticed from recent PRs opening briefly and closing (?) that this one was here.

It looks like the hooks you proposed are pretty similar to the role of the Executor. Could a custom executor achieve the same result for you?

https://pkg.go.dev/github.com/nautilus/gateway#WithExecutor

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.

2 participants