Skip to content

[idea] Retry #183

Description

@hovsep

We can have built in retry mechanism set up per component.

As a first version it can be simple linear retry:

c := component.NewComponent("api-call").WithDescription("makes external http call").WithRetries(3)

Later we can introduce tunable retry strategies or retry based on some closure

c := component.NewComponent("api-call").WithDescription("makes external http call").WithRetryFunc(func (err error) bool {
//backoff or sleep and return true if next retry is needed
})

The mesh scheduler must block and run the activation function with hooks per each retry. Also we can have a new hook: OnRetry

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions