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

Show progress when querying env vars #42

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

b-per
Copy link
Collaborator

@b-per b-per commented Dec 19, 2022

Some actions can take longer than other, e.g. when we have to do one API call per job to get the env var overrides.

This change is a POC of how we could potentially show progress in the terminal.

progress_bar

cloud_job.custom_environment_variables.append(env_var)
with Progress("Looping through jobs", BarColumn(), TaskProgressColumn(), TimeRemainingColumn(), console=console) as progress:
for cloud_job in progress.track(cloud_jobs):
logger.info(f"Getting en vars overwrites for the job {cloud_job.id}:{cloud_job.name}")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be

Getting env vars overwrites for the job

vs.

Getting en vars overwrites for the job

?

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

Successfully merging this pull request may close these issues.

2 participants