From b04cbb3ed4577dc683416ca0305a33e88cc8ae46 Mon Sep 17 00:00:00 2001 From: rjsears Date: Sun, 30 May 2021 15:39:54 -0700 Subject: [PATCH] Update move_local_plots.py --- chianas/move_local_plots.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chianas/move_local_plots.py b/chianas/move_local_plots.py index 4d4104f..0234ab4 100644 --- a/chianas/move_local_plots.py +++ b/chianas/move_local_plots.py @@ -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]])