Skip to content

Commit

Permalink
Update move_local_plots.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsears authored May 30, 2021
1 parent cb57547 commit b04cbb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chianas/move_local_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ def process_control(command, action):
return

def check_drive_activity():
"""
Here we are checking drive activity on the drive we are moving plots to internally. If there is
drive activity, then we are most likely moving a plot to that drive and do not want to 'double
up' on moves.
"""
try:
current_plotting_drive = read_config_data('plot_manager_config', 'plotting_drives', 'current_internal_drive', False)
subprocess.call([drive_activity_test, get_device_by_mountpoint(current_plotting_drive)[0][1].split('/')[2]])
Expand Down

0 comments on commit b04cbb3

Please sign in to comment.