Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

feat(executor): allow cancel execution units through context #317

Conversation

zeroqn
Copy link
Contributor

@zeroqn zeroqn commented Jun 11, 2020

What type of PR is this?
feat

What this PR does / why we need it:

Right now, there is not way to cancel a tx execution. This pr provides a way to do
it through ServiceContext.

Execution Flows: ( PR #316

tx hook before units -----> tx unit -----> tx hook after units

Once canceled, following execution unit will not be executed.
Current execution changes will still be saved. We can still revert
those changes using panic.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:
Require PR #316

@muta-bot
Copy link

muta-bot bot commented Jun 11, 2020

Accept request.

@muta-bot
Copy link

muta-bot bot commented Jun 11, 2020

Docker builded. "mutadev/muta:548d621"
Run chaos test on k8s named "muta-pr317"

KaoImin
KaoImin previously approved these changes Jun 24, 2020
@zeroqn zeroqn force-pushed the feat-allow-cancel-execution-units-through-context branch from 548d621 to 1fc3bd8 Compare June 28, 2020 07:07
zeroqn added 3 commits June 28, 2020 20:13
Execution Flows:

tx hook before units -----> tx unit -----> tx hook after units

Once canceled, current execution state will be reverted, following
units will not be executed. State changed before cacneled will be
saved.
@zeroqn zeroqn force-pushed the feat-allow-cancel-execution-units-through-context branch from 1fc3bd8 to 8c325e8 Compare June 28, 2020 12:15
@LycrusHamster LycrusHamster merged commit eafb489 into nervosnetwork:master Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants