Skip to content

fail to run task if remote_root path doesn't existed #436

Open
@link89

Description

@link89

When I running the following code with dflow

from dflow.plugins.dispatcher import DispatcherExecutor

kwargs = {'host': 'xxx', 'username': 'xxx', 'port': 6666, 'machine_dict': {'batch_type': 'Slurm', 'context_type': 'SSHContext', 'remote_profile': {
    'key_filename': '/home/xxx/.ssh/id_ed25519'}}, 'resources_dict': {'number_node': 1, 'cpu_per_node': 1}, 'queue_name': 'c52-small', 'remote_root': '/data/home/xxx/tmp/dflow-galaxy/square-sum'}
exeuctor = DispatcherExecutor(**kwargs)

If the remote_root path doesn't existed, it will raise error instead of create it automatically. I think this could be easily fixed by using mkdir -p or os.makedirs(path, exist_ok=True) somewhere in dpdispatcher.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions