Skip to content

consider adding launcher ReportStats method  #40

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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