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

fix(workflows): fix workflow logs command not finding logs #369

Merged
merged 3 commits into from Sep 23, 2021

Conversation

lamroger
Copy link
Contributor

Overview:
The workflows logs command was looking for logs for the top level run when it should iterate through the jobs for logs.

This also disables the --follow flag for now since we don't support following multiple jobs.

default=False,
cls=common.GradientOption,
)
# TODO (roger): Disabled follow for now since we iterate through multiple workflow job ids
Copy link
Contributor

Choose a reason for hiding this comment

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

do we plan to reenable this? (is there a follow up ticket or project?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, created a ticket internally

command.execute(logId, line, limit, follow)
jobs = workflow_run['status']['jobs']
for job in jobs.values():
logId = job['logId']
Copy link
Contributor

Choose a reason for hiding this comment

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

nit to make sure users can differentiate logs by job

@lamroger lamroger merged commit 69463e4 into master Sep 23, 2021
@lamroger lamroger deleted the roger/pla-431-bug-gradient-workflows-logs---logid branch September 23, 2021 19:58
@PSBOT
Copy link

PSBOT commented Sep 23, 2021

🎉 This PR is included in version 1.8.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@PSBOT PSBOT added the released label Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants