Skip to content

Parse the run summary's additive task_attention field #1255

Open

Description

@rmcdaniel

durable-workflow/workflow#1244 adds an additive task_attention JSON field to run summaries and describe, plus the operator metrics runs.task_attention, tasks.lease_lost_repeatedly and tasks.max_lost_lease_count. The five frozen repair_blocked_reason codes are unchanged, so repair_blocked() (operator_metrics.rs) needs no new code.

The field is null, or:

{"reason": "workflow_task_lease_lost", "consecutive": N, "threshold": T, "workflow_task_id": "…", "last_lease_lost_at": "…"}

It is set when the run's open workflow task has lost its lease without completing T times in a row. A lease is lost when the worker was killed, timed out, or lost its connection.

Required outcome:

  • The Server's describe/list responses and operator metrics pass the field and the metrics through, or expose them.
  • They tolerate their absence on older packages.
  • A test pins the shape.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions