Skip to content

Commit

Permalink
fix bug copy live
Browse files Browse the repository at this point in the history
  • Loading branch information
cfuselli committed Dec 12, 2023
1 parent 6280a28 commit 479ebdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion amstrax/auto_processing/copy_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ def handle_runs(rundocs, args):
# Check if data is on stoomboot and copy if not
copied_stomboot = False
if not any(d['type'] == 'live' and d['host'] == 'stbc' for d in rd['data']):
copied_stomboot = copy_data(run_id, live_data_path, STORAGE_PATHS['stbc'], 'stbc', args.production, args.ssh_host)
exit_code = copy_data(run_id, live_data_path, STORAGE_PATHS['stbc'], 'stbc', args.production, args.ssh_host)
copied_stomboot = (exit_code == 0)
else:
# it was already on stoomboot
copied_stomboot = True

if copied_stomboot:
Expand Down

0 comments on commit 479ebdd

Please sign in to comment.