-
Notifications
You must be signed in to change notification settings - Fork 48
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
Warn about unfinished handlers #488
Conversation
…w. Fix psalm issues
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
97d79b2
to
89c81ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really nice. Makes sense to me. Thanks guys!
$stub->signal('exit'); | ||
$stub->getResult(timeout: 1); | ||
|
||
// todo Check that `await` signal with count was mentioned in the logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a bit of leftover? Below as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We currently don't have the capability to test this, so these TODOs will likely remain for the time being
What was changed
Added logging of unfinished Signal and Update handlers when a Workflow finishes.
Warning
Warn will happen in cases of Workflow success, cancel, continue-as-new, fail with retryable, fail with non-retryable.
If there are unfinished handlers of both types, two warnings will be sent.
To disable such warnings a new feature flag
$warnOnWorkflowUnfinishedHandlers
has been added:Examples:
Checklist