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

Add a tile status command #232

Merged
merged 4 commits into from
Aug 4, 2017
Merged

Conversation

zerebubuth
Copy link
Member

This command can be given a list of tiles and it will print out its in-flight, TOI and storage status. This can be helpful while debugging "stuck" tiles, although in the time it took me to write the tool, the issue was probably self-fixed by the gardener.

I had to do some work-around-y stuff to pass the positional coords arguments to the command_tile_status function, so I'd very much appreciate any recommendations about how that might be done more neatly or cleanly.

# now we think we probably have a valid coordinate. go look up
# whether it exists in various places.

logger.info("=== %s ===" % (coord_str,))
Copy link
Member

Choose a reason for hiding this comment

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

Logger will do string formatting for you. If you want you can use

logger.info("=== %s ===", coord_str)

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

Thanks! I didn't know that. It makes the code much more readable (bc007b3).

Copy link
Member

@rmarianski rmarianski left a comment

Choose a reason for hiding this comment

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

The command line parsing grew to be a little bit confusing, and I think your change simplifies it. 👍 on the way you did it.

@zerebubuth zerebubuth merged commit 6d71323 into master Aug 4, 2017
@zerebubuth zerebubuth deleted the zerebubuth/command-tile-status branch August 4, 2017 15:40
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.

3 participants