Skip to content
Snippets Groups Projects
Commit 53ef0289 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Merge branch 'migration' of gitlab.mpcdf.mpg.de:nomad-lab/nomad-FAIR into migration

parents 3a4f81ca be09164f
Branches
Tags
1 merge request!36Migration, merge 0.4.3 with parsers
...@@ -29,6 +29,18 @@ from .main import cli ...@@ -29,6 +29,18 @@ from .main import cli
def proc(): def proc():
pass pass
@proc.command(help='List processing tasks')
def ls():
infrastructure.setup_logging()
infrastructure.setup_mongo()
def ls(query):
for proc in query:
print(proc)
ls(processing.Calc.objects(process_status=processing.PROCESS_RUNNING))
ls(processing.Upload.objects(process_status=processing.PROCESS_RUNNING))
@proc.command(help='Stop all running processing') @proc.command(help='Stop all running processing')
@click.option('--calcs', is_flag=True, help='Only stop calculation processing') @click.option('--calcs', is_flag=True, help='Only stop calculation processing')
......
...@@ -104,12 +104,12 @@ spec: ...@@ -104,12 +104,12 @@ spec:
path: {{ .Values.volumes.public }} path: {{ .Values.volumes.public }}
type: Directory type: Directory
- name: staging-volume - name: staging-volume
{{ if eq( .Values.worker.routing "worker")}} {{ if (eq .Values.worker.routing "worker") }}
emptyDir: emptyDir:
medium: 'Memory' medium: 'Memory'
{{ else }} {{ else }}
hostPath: hostPath:
path: {{ .Vallues.volumes.staging}} path: {{ .Values.volumes.staging}}
type: Directory type: Directory
{{ end }} {{ end }}
- name: nomad-volume - name: nomad-volume
......
...@@ -115,12 +115,12 @@ spec: ...@@ -115,12 +115,12 @@ spec:
path: {{ .Values.volumes.public }} path: {{ .Values.volumes.public }}
type: Directory type: Directory
- name: staging-volume - name: staging-volume
{{ if eq( .Values.worker.routing "worker")}} {{ if (eq .Values.worker.routing "worker") }}
emptyDir: emptyDir:
medium: 'Memory' medium: 'Memory'
{{ else }} {{ else }}
hostPath: hostPath:
path: {{ .Vallues.volumes.staging}} path: {{ .Values.volumes.staging}}
type: Directory type: Directory
{{ end }} {{ end }}
- name: nomad-volume - name: nomad-volume
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment