Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • autosubmit autosubmit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 338
    • Issues 338
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • autosubmitautosubmit
  • Merge requests
  • !296

support SCRATCH_PROJECT_DIR for slurm platforms

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Miguel Andrés Martínez requested to merge fix/proj_dir_in_scratch into master Dec 15, 2022
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 11

Closes #912 (closed)

Solves #912 (closed) for slurm and hopefully all the platform files have the necessary changes. However, I have to admit I only tested for slurm and paramiko. Generalization is probably needed.

The solution consists of adding a new variable in the platform file named SCRATCH_PROJECT_DIR: chhb19 while PROJECT: hhb19. I also created a new property in the platform object: platform.project_dir which takes values of SCRATCH_PROJECT_DIR if it exists and of PROJECT if it doesn't. Then I use this variable everywhere where platform.project was used for the project directory in scratch.

Edited Dec 15, 2022 by Miguel Andrés Martínez
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/proj_dir_in_scratch