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

Detect and remove (deleted) suffix from hq binary path #792

Merged
merged 1 commit into from
Dec 19, 2024
Merged

Conversation

Kobzol
Copy link
Collaborator

@Kobzol Kobzol commented Dec 9, 2024

Fixes: #791
Fixes: #452

/// - https://github.com/It4innovations/hyperqueue/issues/452
fn normalize_exe_path(mut path: PathBuf) -> PathBuf {
if let Some(name) = path.file_name().and_then(|n| n.to_str()) {
if let Some(name) = name.to_string().strip_suffix(" (deleted)") {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

to_string is here to work around lifetimes.

@Kobzol Kobzol merged commit 24345e3 into main Dec 19, 2024
8 checks passed
@Kobzol Kobzol deleted the detect-deleted branch December 19, 2024 06:56
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.

HQ batch job submission fails at Karolina Alloc crash + new allocs have (deleted) in jobscript
2 participants