Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support minimum_time for pipelines that return too quickly #112

Open
spencer-cdw opened this issue Apr 7, 2023 · 0 comments
Open

Support minimum_time for pipelines that return too quickly #112

spencer-cdw opened this issue Apr 7, 2023 · 0 comments
Assignees

Comments

@spencer-cdw
Copy link

spencer-cdw commented Apr 7, 2023

We have a pipeline that takes 1 hour to run.
Occasionally see the pipeline silently fails after a few seconds/minutes.

Unfortunately the failure doesn't raise an exception or an invalid exit code, so the pipeline continues on.

We would like to have a flag similar to the timeout_minutes, however rather than setting a ceiling for the maximum time the task should run, we want a minimum time that the task should have taken

      - name: ${{ matrix.image }}
        uses: nick-fields/retry@v2
        with:
          min_time: 60 #<----------------------------- desired feature
          timeout_minutes: 180 # 3 hours
          polling_interval_seconds: 10
          max_attempts: 2
          retry_on: error
          command: "${{ env.PKR_VAR_root_file_path }}/actions/build-images.sh"
          ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants