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

Set commands v2 scenario to flight by default #52

Open
taldcroft opened this issue Sep 28, 2022 · 0 comments
Open

Set commands v2 scenario to flight by default #52

taldcroft opened this issue Sep 28, 2022 · 0 comments

Comments

@taldcroft
Copy link
Contributor

In the next release of ska3-flight 2022.9, commands v2 will become the default. In order to reduce network dependencies in load review, you can set the commands v2 scenario to flight by default. This can be done with the following code, perhaps in acis_thermal_check/main.py:

os.environ.setdefault('KADI_SCENARIO', 'flight')

Since any machine on the HEAD network will see /proj/sot/ska/data/kadi which is kept up to date every 10 minutes, this should always be good for production load review. If you ever run the LR tools on a laptop, you might instead want this code, which is what we did for ACA review starcheck:

from testr import test_helper

# For kadi commands v2 running on HEAD set the default scenario to flight.
# This is aimed at running in production where the commands archive is
# updated hourly. In this case no network resources are used.
if test_helper.on_head_network():
    os.environ.setdefault('KADI_SCENARIO', 'flight')
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

No branches or pull requests

1 participant