aiidateam / aiida-workgraph

Efficiently design and manage flexible workflows with AiiDA, featuring an interactive GUI, checkpoints, provenance tracking, and remote execution capabilities.
https://aiida-workgraph.readthedocs.io/en/latest/
MIT License
9 stars 5 forks source link

PythonJob use task name as process label #210

Closed superstar54 closed 1 month ago

superstar54 commented 1 month ago

Provide an input process_label so that the user can set the process label manually. In case of WorkGraph, the process label will be set as: PythonJob<{task['name']}

edan-bainglass commented 1 month ago

Very nice! Unfortunately, you missed a closing bracket 😅

inputs = {
        "process_label": f"PythonJob<{task['name']}",    <------------------ missing >
        "function_source_code": orm.Str(function_source_code),
        "function_name": orm.Str(function_name),
        "code": code,
        "function_kwargs": function_kwargs,
        "upload_files": new_upload_files,
        "output_info": orm.List(output_info),
        "metadata": metadata,
        **kwargs,
    }