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

Move sysexit to _wait_and_return_future here? #99

Open
github-actions bot opened this issue Nov 10, 2020 · 0 comments
Open

Move sysexit to _wait_and_return_future here? #99

github-actions bot opened this issue Nov 10, 2020 · 0 comments
Labels

Comments

@github-actions
Copy link
Contributor

Move sysexit to _wait_and_return_future here?

If KeyboardInterrupt was raised

# TODO: Move sysexit to _wait_and_return_future here?

                    prev_elem.cycle_time_future
                )

                # TODO: Move sysexit to _wait_and_return_future here?
                if not prev_elem.cycle_time:  # If KeyboardInterrupt was raised
                    log.info("Exiting script, breaking loop and saving run_data.")
                    _write_run_data(progress_file, run_data, fab_elements)
                    sys.exit(0)

                cycle_time_msg = f"Last cycle time was: {prev_elem.cycle_time:0.0f}"
                log.info(cycle_time_msg)
                rob_client.send(PrintTextNoErase(cycle_time_msg))

64ae0d3f6bae26ecb0d8c2173dacdda39977e775

@github-actions github-actions bot added the todo label Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants