-
|
i was expecting from jobflow_remote import JobController
from jobflow_remote.jobs.state import JobState
from jobflow_remote.remote.data import check_additional_stores
job_controller = JobController.from_project_name(proj_name)
job = job_coll.find_one({Key.state: JobState.COMPLETED.value})
check_additional_stores(job, job_controller.jobstore)
>>> ['_id',
'remote',
'stored_data',
'updated_on',
'parents',
'priority',
'job',
'run_dir',
'end_time',
'resources',
'error',
'previous_state',
'lock_id',
'worker',
'lock_time',
'created_on',
'exec_config',
'db_id',
'start_time',
'state'] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @janosh, So, for an atomate2 VASP Job, if the The main reason why you are getting this weird output is that the function expects a In your case you should get the proper behaviour by modifying the call to the function like this: check_additional_stores(job["job"], job_controller.jobstore) |
Beta Was this translation helpful? Give feedback.
Hi @janosh,
the purpose of the
check_additional_storesis to allow the user to know at submission time if thejobstorehas been properly configure in case the job requires an additional store. For example, in the case of VASP atomate2 jobs adataadditional store should be present in thejobstoredefined in the project configuration file. Without this check, if thedataadditional store was not defined, you would get an error at the end of the Job. In this way you the user is warned before the job is added to the DB.So this function does not check the DB collections, but rather the configuration file.
So, for an atomate2 VASP Job, if the
jobstorein the project configuration does not con…