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

feat!: add abort function to Runner and remove stepIdx parameter from run method #175

Merged
merged 1 commit into from
Jun 9, 2022

Conversation

ergunsh
Copy link
Collaborator

@ergunsh ergunsh commented Jun 9, 2022

Adds an abort function that stops running the remaining steps.

@ergunsh
Copy link
Collaborator Author

ergunsh commented Jun 9, 2022

I wonder if we should run afterAllSteps if the execution is aborted, wdyt? @OrKoN

@ergunsh ergunsh requested a review from OrKoN June 9, 2022 08:25
@OrKoN
Copy link
Collaborator

OrKoN commented Jun 9, 2022

I think we probably should, WDYT?

@ergunsh ergunsh force-pushed the abort-execution branch 2 times, most recently from 75e252b to 9562137 Compare June 9, 2022 08:33
@ergunsh
Copy link
Collaborator Author

ergunsh commented Jun 9, 2022

I agree since we expect that to be used for cleaning up, after aborting users probably will need to clean up too.

src/Runner.ts Outdated Show resolved Hide resolved
@OrKoN
Copy link
Collaborator

OrKoN commented Jun 9, 2022

let's add "BREAKING CHANGE: " to the final commit message though

@ergunsh ergunsh changed the title Add abort function to Runner feat: add abort function to Runner and remove stepIdx parameter from run method Jun 9, 2022
@ergunsh ergunsh changed the title feat: add abort function to Runner and remove stepIdx parameter from run method feat!: add abort function to Runner and remove stepIdx parameter from run method Jun 9, 2022
@ergunsh ergunsh merged commit 087d9ce into main Jun 9, 2022
@ergunsh ergunsh deleted the abort-execution branch June 9, 2022 11:10
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.

None yet

2 participants