runtraj.execution.fetch_script#

runtraj.execution.fetch_script(project, execution, folder, *, skip_existing=True)[source]#

Return the sbatch script of the job that gets the met files before a job array.

It runs runtraj fetch <project> --releases <folder>/releases.parquet (with --no-skip when not skip_existing) with the Python that called this, as one task, after the setup commands. Its partition, account, qos, time and mem are those of fetch in execution’s slurm block, each unset one the array’s. Of the other sbatch options it takes only clusters, so it runs on the cluster of the array that waits for it. Its log is <folder>/fetch.log.

Return type:

str

Parameters:
  • project (runtraj.project.Project)

  • execution (ExecutionConfig)

  • folder (Path)

  • skip_existing (bool)