Skip to content

Usage of worker-wrap-cmd #1097

@svatosFZU

Description

@svatosFZU

Hi,
I would like to ask for an advice about how to use --worker-wrap-cmd (https://it4innovations.github.io/hyperqueue/latest/deployment/allocation/#worker-wrap-command). I have tried to use a bash script for the wrap command but it fails, presumably due to all the double quotes in the worker details and how bash uses them. Example of the submission command from hq-submit.sh:

RUST_LOG=hyperqueue=debug,tako=debug bash wrap_command.sh /home/svatosm/hq-v0.25.0-linux-x64/hq worker start --idle-timeout "5m" --manager "slurm" --server-dir "/home/svatosm/.hq-server/001" --cpus "36" --resource "score=sum(36)" --resource "mem=sum(186000)" --overview-interval "0s" --min-utilization 1 --on-server-lost "finish-running" --time-limit "11h 59m"

So, would it be possible to do something like having single quotes around the double quoted parts, or escape the double quotes, or put the worker command in the separate script, etc. if there is a wrap command?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions