Skip to content

Conversation

john-michaelburke
Copy link
Collaborator

We have been using this feature quite a bit attempting to debug the intermittent crash. So I am taking it from @keithel-qt PR:
#512

@john-michaelburke john-michaelburke requested a review from a team April 20, 2022 21:04

def main(passed_args: Optional[Tuple[str, ...]] = None) -> int:
parser = argparse.ArgumentParser(add_help=False, usage=argparse.SUPPRESS)
parser = argparse.ArgumentParser(add_help=False, usage=argparse.SUPPRESS, allow_abbrev=False)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The allow_abbrev is needed because python is catching our "exit-after" flag that is only consumed by the backend thinking it is a typo. Maybe we should use a different name here?

Copy link
Contributor

Choose a reason for hiding this comment

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

How about --exit-after-timeout and --exit-after-close (for the existing --exit-after)?

@john-michaelburke john-michaelburke force-pushed the john-michaelburke/exit-after-secs branch from c8eacee to 0d91f74 Compare April 20, 2022 22:04
@john-michaelburke john-michaelburke merged commit 27329da into main Apr 20, 2022
@john-michaelburke john-michaelburke deleted the john-michaelburke/exit-after-secs branch April 20, 2022 23:12
keithel-qt added a commit that referenced this pull request Apr 26, 2022
cherry-picked to crash inspection branch.
This also reverts "Add exit-after-secs cmdline option to console"
commit 1cfdba6.
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