Skip to content

Better error handling on task start #182

@nadim-az

Description

@nadim-az

Sometimes a task container fails to start because of a non-docker issue (example: bad config passed to the load test task), however Petri will always report a context timeout error which can be misleading. Petri should check the container logs to see if an error was returned by the container process and report the error back to the user instead of just timing out waiting for the container to successfully start. This is helpful for petri users to debug issues.

err = util.WaitForCondition(ctx, time.Second*300, time.Millisecond*100, func() (bool, error) {

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions