Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support canceling scheduled invocations #48

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

mschuwalow
Copy link
Contributor

followup to #45

@@ -97,13 +97,19 @@ interface types {

/// Schedule invocation for later
schedule-invocation: func(scheduled-time: datetime, function-name: string, function-params: list<wit-value>) -> ();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Left the old one for backwards compat as we already cut a release.
In principle we can have a more effecient implementation for the non cancellation version as it's idempotent.

(This version would be like the old code, currently I implemented it in terms of the new function to reduce code size)

@mschuwalow mschuwalow force-pushed the scheduled-invocation-cancel branch from 3ab9530 to 5ea21f3 Compare February 13, 2025 08:48
@mschuwalow mschuwalow merged commit f5d09ec into main Feb 13, 2025
2 checks passed
@mschuwalow mschuwalow deleted the scheduled-invocation-cancel branch February 13, 2025 08:48
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