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

Adds HV into dispatcher #73

Merged
merged 4 commits into from
Nov 24, 2021
Merged

Adds HV into dispatcher #73

merged 4 commits into from
Nov 24, 2021

Conversation

darrylmasson
Copy link

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.

Copy link

@JoranAngevaare JoranAngevaare left a comment

Choose a reason for hiding this comment

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

Looks good

Comment on lines +46 to +50
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'

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)

Copy link
Author

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.

dispatcher/hypervisor.py Outdated Show resolved Hide resolved
dispatcher/hypervisor.py Outdated Show resolved Hide resolved
dispatcher/hypervisor.py Outdated Show resolved Hide resolved
dispatcher/hypervisor.py Outdated Show resolved Hide resolved
darrylmasson and others added 3 commits September 17, 2021 09:05
Co-authored-by: Joran Angevaare <jorana@nikhef.nl>
@darrylmasson darrylmasson merged commit aed8c3b into master Nov 24, 2021
@darrylmasson darrylmasson deleted the dispatcher_hypervisor branch November 24, 2021 13:09
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