exceptionhandler

package
v0.0.0-...-0f879ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

Exception Handler

This is a simple example of a workflow that uses a FailureHandler to recover from a flaky task.

Start the Task Worker

We have two TaskDef's and thus two Task Functions. Note that worker/main.go kicks off two threads, one for each Task Worker.

go run ./exceptionhandler/worker

Register the WfSpec

In another terminal, run:

go run ./exceptionhandler/deploy

Run a WfRun

Let's run the WfRun:

lhctl run exception-handler

Then you can see all of the ThreadRuns in the WfRun by:

lhctl get wfRun <wfRunId>

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExceptionHandlerWorkflow

func ExceptionHandlerWorkflow(thread *wflib.ThreadBuilder)

func FlakyTask

func FlakyTask() (*string, error)

func SomeStableTask

func SomeStableTask() string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL