Skip to content

Commit

Permalink
Bug when transferring raw data between servers pre-analysis found -- …
Browse files Browse the repository at this point in the history
…need test
  • Loading branch information
glormph committed Jun 25, 2024
1 parent 196af34 commit 771f9e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions deploy/storage_tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
become: yes
become_user: '{{ kanteleuser }}'
ansible.builtin.copy:
src: files/ssh_key_rsync.secret
dest: "{{ rsync_ssh_key_file }}"
src: "{{ item.0 }}"
dest: "{{ item.1 }}"
owner: "{{ kanteleuser }}"
group: "{{ kanteleuser }}"
mode: '400'
Expand Down
6 changes: 3 additions & 3 deletions src/backend/analysis/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1163,9 +1163,9 @@ def start_analysis(request):
return JsonResponse({'error': 'Only waiting/canceled jobs can be (re)started, this job is {}'.format(job.state)}, status=403)

primary_share = rm.ServerShare.objects.get(name=settings.PRIMARY_STORAGESHARENAME)
for dset in am.DatasetAnalysis.objects.filter(analysis_id=job.nextflowsearch.analysis_id):
if dset.storageshare.server != primary_share.server:
if error := move_dset_project_servershare(dset, settings.PRIMARY_STORAGESHARENAME):
for dsa in am.DatasetAnalysis.objects.filter(analysis_id=job.nextflowsearch.analysis_id):
if dsa.dataset.storageshare.server != primary_share.server:
if error := move_dset_project_servershare(dsa.dataset, settings.PRIMARY_STORAGESHARENAME):
return JsonResponse({'error': error}, status=403)

jv.do_retry_job(job)
Expand Down

0 comments on commit 771f9e6

Please sign in to comment.