Skip to content

consider adding launcher ReportStats method  #40

@rlball

Description

@rlball

signature:
Launcher.ReportStats(sts Stats)

would require creating a new task Stats struct designed to simplify stats reporting to a central reporting service like Prometheus.

maybe consider, changing the DoTask() signature to:
DoTask(ctx context.Context) (task.Result, string, *Stats)

When *Stats is not nil then the stats are reported.
or
launcher only reports Stats if task.Result == "complete" and *Stats is not nil.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions