Skip to content

Issues to get all the retryAttemps of an workflow #2004

@ananta-code

Description

@ananta-code

Describe the bug
I have a runner and which was retried 5 times and each runner has almost 25 jobs so when i use
repository.getWorkflowRun(runnerId/workflow_id), it is returning the ghWorkFlowRunner but newWorkFlowRun.listJobs().toList() doesn't have all the retried job info

To Reproduce
Steps to reproduce the behavior:

  1. Create a PR
  2. Cancel the first runner
  3. Retry the runner again and again
  4. newWorkFlowRun.listJobs().toList() should contain all the jobs irrespective of the retry attemps

Expected behavior
newWorkFlowRun.listJobs().toList() is only returning most recent retried jobs

Desktop (please complete the following information):

  • OS: iOS
  • Version 1.326

Additional context
Is there any way to get the runner specific to a runner id and retryAttempt.
I have monorepo so repository.queryWorkflowRuns().list() and then filter by runnerId and retry attempt is not feasible for me since we have more than 3000 runners getting executed everyday.

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