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

Fixed an issue with error handling in task waiter #127

Merged
merged 2 commits into from
Dec 9, 2022

Conversation

slewis74
Copy link
Contributor

@slewis74 slewis74 commented Dec 8, 2022

Background:
During additional testing of the await-task-action it was found that if an invalid server task id was past to the ServerTaskWaiter the action would detect the error rapidly but not complete until the timeout had expired.

Upon investigation this came back to the ServerTaskWaiter needing to catch errors and cleanup the timer promise before rethrowing.

Copy link
Contributor

@domenicsim1 domenicsim1 left a comment

Choose a reason for hiding this comment

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

Over all looks good, left a comment about how to make the code a bit easier to maintain.

src/features/serverTasks/serverTaskWaiter.ts Outdated Show resolved Hide resolved
@slewis74 slewis74 merged commit 7e2ec6e into main Dec 9, 2022
@slewis74 slewis74 deleted the bug-waiterrorhandling branch December 9, 2022 04:11
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