Skip to content
Snippets Groups Projects
Commit e11dbe9e authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Resolve "Set current directory"

parent 3f98e380
No related branches found
No related tags found
No related merge requests found
...@@ -115,11 +115,12 @@ lint-test-job: # Runs linters checks on code ...@@ -115,11 +115,12 @@ lint-test-job: # Runs linters checks on code
script: script:
- ./scripts/lint.sh - ./scripts/lint.sh
build-publish-dev-docker-container-job: publish-dev-docker-container-job:
stage: deploy stage: deploy
image: image:
name: gcr.io/kaniko-project/executor:v1.9.1-debug name: gcr.io/kaniko-project/executor:v1.9.1-debug
entrypoint: [""] entrypoint: [""]
dependencies: []
only: only:
refs: refs:
- development - development
...@@ -132,11 +133,12 @@ build-publish-dev-docker-container-job: ...@@ -132,11 +133,12 @@ build-publish-dev-docker-container-job:
--destination "${CI_REGISTRY_IMAGE}:dev-${CI_COMMIT_SHA}" --destination "${CI_REGISTRY_IMAGE}:dev-${CI_COMMIT_SHA}"
--destination "${CI_REGISTRY_IMAGE}:dev-latest" --destination "${CI_REGISTRY_IMAGE}:dev-latest"
build-publish-docker-container-job: publish-docker-container-job:
stage: deploy stage: deploy
image: image:
name: gcr.io/kaniko-project/executor:v1.9.1-debug name: gcr.io/kaniko-project/executor:v1.9.1-debug
entrypoint: [""] entrypoint: [""]
dependencies: []
only: only:
- tags - tags
before_script: before_script:
......
...@@ -37,6 +37,7 @@ This is the Workflow service of the CloWM service. ...@@ -37,6 +37,7 @@ This is the Workflow service of the CloWM service.
| `PARAMS_BUCKET_MOUNT_PATH` | `/mnt/params-bucket` | Path on slurm cluster | Folder where the S3 bucket `PARAMS_BUCKET` will be mounted on the slurm cluster | | `PARAMS_BUCKET_MOUNT_PATH` | `/mnt/params-bucket` | Path on slurm cluster | Folder where the S3 bucket `PARAMS_BUCKET` will be mounted on the slurm cluster |
| `NX_CONFIG` | unset | Path on slurm cluster | Configuration file on the slurm cluster that is the same for every nextflow run | | `NX_CONFIG` | unset | Path on slurm cluster | Configuration file on the slurm cluster that is the same for every nextflow run |
| `NX_BIN` | `nextflow` | Path on slurm cluster | Path to the nextflow executable. Default it is in the `PATH` | | `NX_BIN` | `nextflow` | Path on slurm cluster | Path to the nextflow executable. Default it is in the `PATH` |
| `SLURM_WORKING_DIRECTORY` | `/tmp` | Path on slurm cluster | Working directory for the slurm job with the nextflow command |
| `ACTIVE_WORKFLOW_EXECUTION_LIMIT` | `3` | Integer | Limit of active workflow execution a user is allowed to have. `-1` means infinite. | | `ACTIVE_WORKFLOW_EXECUTION_LIMIT` | `3` | Integer | Limit of active workflow execution a user is allowed to have. `-1` means infinite. |
| `DEV_SYSTEM` | `False` | `<"True"&#x7c;"False">` | Activates an endpoint that allows execution of an workflow from an arbitrary Git Repository.<br>HAS TO BE `False` in PRODUCTION! | | `DEV_SYSTEM` | `False` | `<"True"&#x7c;"False">` | Activates an endpoint that allows execution of an workflow from an arbitrary Git Repository.<br>HAS TO BE `False` in PRODUCTION! |
......
...@@ -86,6 +86,9 @@ class Settings(BaseSettings): ...@@ -86,6 +86,9 @@ class Settings(BaseSettings):
) )
NX_CONFIG: str | None = Field(None, description="Path to a nextflow configuration for every run") NX_CONFIG: str | None = Field(None, description="Path to a nextflow configuration for every run")
NX_BIN: str = Field("nextflow", description="Path to the nextflow executable") NX_BIN: str = Field("nextflow", description="Path to the nextflow executable")
SLURM_WORKING_DIRECTORY: str = Field(
"/tmp", description="Working directory for the slurm job with the nextflow command"
)
ACTIVE_WORKFLOW_EXECUTION_LIMIT: int = Field(3, description="The limit of active workflow executions per user.") ACTIVE_WORKFLOW_EXECUTION_LIMIT: int = Field(3, description="The limit of active workflow executions per user.")
DEV_SYSTEM: bool = Field(False, description="Open a endpoint where to execute arbitrary workflows.") DEV_SYSTEM: bool = Field(False, description="Open a endpoint where to execute arbitrary workflows.")
......
...@@ -49,6 +49,7 @@ class SlurmClient: ...@@ -49,6 +49,7 @@ class SlurmClient:
"script": nextflow_script, "script": nextflow_script,
"job": { "job": {
"name": str(execution_id), "name": str(execution_id),
"current_working_directory": settings.SLURM_WORKING_DIRECTORY,
"requeue": False, "requeue": False,
"environment": env, "environment": env,
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment