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

Configurable refresh interval #10080

Open
2 tasks
dekiel opened this issue Mar 8, 2024 · 0 comments
Open
2 tasks

Configurable refresh interval #10080

dekiel opened this issue Mar 8, 2024 · 0 comments

Comments

@dekiel
Copy link
Contributor

dekiel commented Mar 8, 2024

After triggering oci-image-builder pipeline, an image-builder client query ADO for pipeline execution status in a loop. Once status indicate a pipeline finished it's work, a client will download logs. At present the interval how often client query ADO API for pipeline status is hardcoded and set to 30 seconds. This value should be configurable through global config file.

Current implementation.

pipelineRunResult, err := adopipelines.GetRunResult(ctx, adoClient, o.AdoConfig.GetADOConfig(), pipelineRun.Id, 30*time.Second)

Acceptance Criteria

  • ADO API query interval is configurable
  • Interval value is provided through global config file
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

1 participant