Skip to content

[Run Service] Support Abort #6984

@machichima

Description

@machichima

Command

RUN_NAME='run-xxxxx' bash runs/test/scripts/abort_run.sh

Description

We need to call Abort in action service from run service's AbortRun and AbortAction to actually abort the action.

func (s *ActionsService) Abort(

How to verify

After modification, you can follow these steps to verify you changes:

  1. Follow the description in parent issue to start Flyte locally and execute an action (Step 1 ~ 4)
  2. During the executing, execute the command below to abort the run or action
RUN_NAME='run-xxxxx' bash runs/test/scripts/abort_run.sh

RUN_NAME='run-xxxxx' ACTION='action-name' bash runs/test/scripts/abort_action.sh
  1. Use following to check the run/action status (Also copy from [V2] Example script for run service #6983), you should see ACTION_PHASE_ABORTED status
RUN_NAME=run-XXX bash runs/test/scripts/get_run_details.sh
RUN_NAME=run-XXX ACTION=run-XXX bash runs/test/scripts/get_action_details.sh

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions