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

Include CI for loadbalancer and hyperqueue testing #67

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Crambor
Copy link
Collaborator

@Crambor Crambor commented Mar 17, 2024

resolves #59

@@ -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)) {
Copy link
Member

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) {
Copy link
Member

Choose a reason for hiding this comment

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

kind of redundant?

Copy link
Collaborator Author

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

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.

HPC: Ensure load balancer finds hq when located in same directory
3 participants