Skip to content
Snippets Groups Projects
Commit d0ffbf93 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-488: tbb dumps can take a long time.... timeout of 24 hours is ok.

parent 80ab452d
No related branches found
No related tags found
No related merge requests found
...@@ -61,26 +61,8 @@ def upload_tbb_data(stations, dm, start_time, duration, sub_bands, wait_time, bo ...@@ -61,26 +61,8 @@ def upload_tbb_data(stations, dm, start_time, duration, sub_bands, wait_time, bo
full_cmd = '\"%s\"' % (' ; '.join(cmd_list),) full_cmd = '\"%s\"' % (' ; '.join(cmd_list),)
execute_in_parallel_over_stations(full_cmd, stations_with_num_boards) execute_in_parallel_over_stations(full_cmd, stations_with_num_boards,
timeout=24*60*60) # tbb dumps can take a long time.... timeout of 24 hours is ok
# # Now build the two loops that execute tbbctl for every channel and
# # for every board.
# # Why first loop over channels and then over boards? That allows
# # to add only one sleep after a channel is uploaded for all boards.
# # Otherwise each board would have the sleep and we would sleep
# # # of boards times for every channel instead.
# cmd = "for((channel = 0; channel <= 15; ++channel)); do for board in"
# cmd += board_list
# cmd += "; do "
# cmd += tbb_cmd % (sub_band, adjusted_start_time, slice_nr, duration)
# cmd += "; done; sleep "
# cmd += str(wait_time)
# cmd += "; done"
# cmd = wrap_remote_composite_command(cmd)
# command = relay + [cmd]
# logging.info('Executing %s', ' '.join(command))
# subprocess.check_call(command)
time.sleep(wait_time) time.sleep(wait_time)
logging.info("Uploading TBB data done.") logging.info("Uploading TBB data done.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment