-
Notifications
You must be signed in to change notification settings - Fork 14
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
Include CI for loadbalancer and hyperqueue testing #67
base: main
Are you sure you want to change the base?
Conversation
@@ -49,6 +53,13 @@ int main(int argc, char *argv[]) | |||
create_directory_if_not_existing("sub-jobs"); | |||
clear_url("urls"); | |||
|
|||
// Check if the hq binary exists | |||
std::string hq_binary_path = "./hq"; | |||
if (!file_exists(hq_binary_path)) { |
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.
Good idea! Could do similar checks for job.sh and alloc script as well!
sleep(1); // Workaround: give the HQ server enough time to start. | ||
|
||
// Create HQ allocation queue | ||
std::system("hq_scripts/allocation_queue.sh"); | ||
} | ||
|
||
bool file_exists(const std::string& path) { |
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.
kind of redundant?
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.
ah true - habit, thought I would use it more
resolves #59