Skip to content

[Improvement]Add a stop function when you are ready to do pause operation#11543

Merged
lenboo merged 2 commits intoapache:devfrom
106umao:feat/ready-pause-stop
Aug 18, 2022
Merged

[Improvement]Add a stop function when you are ready to do pause operation#11543
lenboo merged 2 commits intoapache:devfrom
106umao:feat/ready-pause-stop

Conversation

@106umao
Copy link
Contributor

@106umao 106umao commented Aug 18, 2022

Purpose of the pull request

this pr will close #11547

Brief change log

When a workflow is running or blocking for a long time, the user may do pause opteration, and the pause operation may be blocked while waiting for the task to execute, so I think there should be an option to stop it when it is ready pause status

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

lenboo
lenboo previously approved these changes Aug 18, 2022
Copy link
Contributor

@lenboo lenboo left a comment

Choose a reason for hiding this comment

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

+1

@lenboo
Copy link
Contributor

lenboo commented Aug 18, 2022

no issue and no comments about this pr

@SbloodyS SbloodyS added the improvement make more easy to user or prompt friendly label Aug 18, 2022
@SbloodyS SbloodyS added this to the 3.1.0 milestone Aug 18, 2022
WangJPLeo
WangJPLeo previously approved these changes Aug 18, 2022
Copy link
Contributor

@WangJPLeo WangJPLeo left a comment

Choose a reason for hiding this comment

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

+1

@106umao 106umao changed the title [Improvement]Add a stop function when you are ready to pause [Improvement]Add a stop function when you are ready to pause operation Aug 18, 2022
@106umao 106umao changed the title [Improvement]Add a stop function when you are ready to pause operation [Improvement]Add a stop function when you are ready to do pause operation Aug 18, 2022
case PAUSE:
case STOP:
if (executionStatus.isRunning()) {
if (executionStatus.canStop()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

PAUSE status check not same as STOP.

@106umao 106umao dismissed stale reviews from WangJPLeo and lenboo via 06b167c August 18, 2022 12:38
@codecov-commenter
Copy link

codecov-commenter commented Aug 18, 2022

Codecov Report

Merging #11543 (846e348) into dev (2862f5b) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head 846e348 differs from pull request most recent head 06b167c. Consider uploading reports for the commit 06b167c to get more accurate results

@@             Coverage Diff              @@
##                dev   #11543      +/-   ##
============================================
- Coverage     39.67%   39.66%   -0.01%     
+ Complexity     4697     4695       -2     
============================================
  Files           993      993              
  Lines         37692    37695       +3     
  Branches       4197     4198       +1     
============================================
- Hits          14953    14951       -2     
- Misses        21170    21173       +3     
- Partials       1569     1571       +2     
Impacted Files Coverage Δ
...cheduler/api/service/impl/ExecutorServiceImpl.java 37.91% <0.00%> (-0.17%) ⬇️
...cheduler/common/enums/WorkflowExecutionStatus.java 62.22% <0.00%> (-1.42%) ⬇️
...er/master/dispatch/host/assign/RandomSelector.java 77.77% <0.00%> (-5.56%) ⬇️
...dolphinscheduler/remote/future/ResponseFuture.java 81.96% <0.00%> (-1.64%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@lenboo lenboo merged commit 3b72c6e into apache:dev Aug 18, 2022
zhuxt2015 pushed a commit to zhuxt2015/dolphinscheduler that referenced this pull request Aug 21, 2022
…tion (apache#11543)

* add can stop for execute state machine

* add execute type check for pause operation
xdu-chenrj pushed a commit to xdu-chenrj/dolphinscheduler that referenced this pull request Oct 13, 2022
…tion (apache#11543)

* add can stop for execute state machine

* add execute type check for pause operation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend improvement make more easy to user or prompt friendly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement][Workflow] Add a stop function when you are ready to pause

5 participants