Skip to content

Commit

Permalink
Fix: add requeue in skip and optimize readme
Browse files Browse the repository at this point in the history
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
  • Loading branch information
FogDong committed Jan 17, 2023
1 parent 95c2164 commit 15b6ebb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1,121 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,12 @@ Please checkout: [Install Vela CLI](https://kubevela.io/docs/installation/kubern
- [Custom Context Data](https://kubevela.io/docs/next/end-user/pipeline/workflowrun#custom-context-data)
- [Built-in Context Data](https://kubevela.io/docs/next/end-user/pipeline/workflowrun#built-in-context-data)

## How to write custom steps
## Step Types

### Built-in Step Types

Please checkout the [built-in step definitions](https://kubevela.io/docs/next/end-user/workflow/built-in-workflow-defs) with scope that valid in `WorkflowRun`.
### Write Your Custom Step Types

If you're not familiar with CUE, please checkout the [CUE documentation](https://kubevela.io/docs/platform-engineers/cue/basic) first.

Expand Down
2 changes: 1 addition & 1 deletion controllers/workflowrun_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (r *WorkflowRunReconciler) Reconcile(ctx context.Context, req ctrl.Request)
return ctrl.Result{}, patcher.patchStatus(logCtx, &run.Status, isUpdate)
case v1alpha1.WorkflowStateSkipped:
logCtx.Info("Skip this reconcile")
return ctrl.Result{}, nil
return ctrl.Result{RequeueAfter: executor.GetBackoffWaitTime()}, nil
}

return ctrl.Result{}, nil
Expand Down
Loading

0 comments on commit 15b6ebb

Please sign in to comment.