Skip to content

Don't rely on there being an additional_stores field (e.g. with Atomate2) #331

@Andrew-S-Rosen

Description

@Andrew-S-Rosen

The additional_stores field can be used to store large documents, but not everyone needs to do this in practice. If the user's jfremote.yaml does not have additional_stores, Jobflow-Remote crashes with the following:

Traceback (most recent call last):
  File "/scratch/gpfs/ROSENGROUP/asrosen/jobflow/vasp/atomate2/job.py", line 18, in <module>
    ids = submit_flow(flow, worker="basic_vasp")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/asrosen/.conda/envs/cms/lib/python3.12/site-packages/jobflow_remote/jobs/submit.py", line 80, in submit_flow
    raise ConfigError(
jobflow_remote.config.base.ConfigError: Additional stores ['data'] are not configured for this project.

The proposal here is to accept the user not providing an additional_stores or to default to using the main jobstore for this.

Migrated from materialsproject/atomate2#1260.

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