Skip to content

feat(plugin): Wire plugin hooks into SDK execution lifecycle#422

Merged
ayushiahjolia merged 1 commit into
mainfrom
plugin-wiring
Jun 3, 2026
Merged

feat(plugin): Wire plugin hooks into SDK execution lifecycle#422
ayushiahjolia merged 1 commit into
mainfrom
plugin-wiring

Conversation

@ayushiahjolia
Copy link
Copy Markdown
Contributor

@ayushiahjolia ayushiahjolia commented Jun 2, 2026

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Issue Link, if available

#364

Description

Wire the DurableExecutionPlugin hooks into the SDK so registered plugins receive lifecycle events during execution

Demo/Screenshots

Screenshot 2026-06-02 at 2 01 49 PM

Checklist

  • I have filled out every section of the PR template
  • I have thoroughly tested this change

Testing

Unit Tests

Have unit tests been written for these changes? Yes

Integration Tests

Have integration tests been written for these changes? Yes

Examples

Has a new example been added for the change? (if applicable) Yes

@ayushiahjolia ayushiahjolia force-pushed the plugin-wiring branch 3 times, most recently from 5cee7e0 to 83e482a Compare June 2, 2026 19:58
@ayushiahjolia ayushiahjolia marked this pull request as ready for review June 2, 2026 20:47
@ayushiahjolia ayushiahjolia requested a review from a team June 2, 2026 20:47
Comment thread sdk/src/main/java/software/amazon/lambda/durable/execution/DurableExecutor.java Outdated
Comment thread sdk/src/main/java/software/amazon/lambda/durable/execution/DurableExecutor.java Outdated
Comment thread sdk/src/main/java/software/amazon/lambda/durable/DurableConfig.java Outdated
Comment thread sdk/src/main/java/software/amazon/lambda/durable/DurableConfig.java Outdated
Comment thread sdk/src/main/java/software/amazon/lambda/durable/plugin/PluginInfoConverter.java Outdated
replayCompletedOperation.set(true);
}
// Fire onOperationStart plugin hook (including replay)
fireOnOperationStart(existing);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is different from Python SDK where onOperationStart is called only once for each operation

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We will discuss this offline to align on correct behavior

Copy link
Copy Markdown
Contributor

@zhongkechen zhongkechen left a comment

Choose a reason for hiding this comment

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

Approved with some minor comments which can be addressed later.

@ayushiahjolia ayushiahjolia merged commit 7530e2b into main Jun 3, 2026
17 of 26 checks passed
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.

3 participants