-
Notifications
You must be signed in to change notification settings - Fork 7
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
Adds HV into dispatcher #73
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
try: | ||
commit = subprocess.run('git log -n 1 --pretty=oneline'.split(), capture_output=True).stdout.decode().split(' ')[0] | ||
except Exception as e: | ||
logger.debug(f'Couldn\'t get commit hash: {type(e)}, {e}') | ||
commit = 'unknown' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use https://github.com/XENONnT/daqnt/pull/79/files as well (also for related packages like daqnt)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could, but now that the biggest part of daqnt is here, the only things from daqnt that we still use are the logger, the bot, and the Mongo Client. I think it's much more important that we have a strict and accurate version for the dispatcher and hypervisor because these things affect uptime, while the bot and logger don't. Also the dispatcher isn't a module, and I don't see much reason to change this.
Co-authored-by: Joran Angevaare <jorana@nikhef.nl>
Given that the HV is now integral to the dispatcher, and the HV doesn't really have any sensitive info in it, makes little sense to have them separate.
Also the dispatcher now logs its commit hash, for precise version tracking.