Commit f9df3dee authored by Zhang, Yuanpeng's avatar Zhang, Yuanpeng
Browse files

updated slack notify

parent 18f61f68
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ class RobustFileContentHandler(FileSystemEventHandler):
        self.last_hash = self.get_file_hash()
        self.last_mtime = self.get_file_mtime()
        self.run_script = '/SNS/PG3/shared/CALIBRATION/pg3_cal'
        self.slk_script = '/SNS/PG3/shared/autoreduce/utils/slack_msg_pre.py'

        # Set up logging
        log_dir = '/SNS/PG3/shared/CALIBRATION/Scripts/log_files'
@@ -155,9 +154,6 @@ class RobustFileContentHandler(FileSystemEventHandler):
            cmd_list.append(self.run_script)
            cmd_list.append(self.filepath)
            _ = subprocess.Popen(cmd_list)
            cmd_list = list()
            cmd_list.append(self.slk_script)
            _ = subprocess.Popen(cmd_list)
        except Exception as e:
            self.logger.error(f"Error handling content change: {e}")

(551 KiB)

File changed.

No diff preview for this file type.

+1 −0
Original line number Diff line number Diff line
@@ -3,3 +3,4 @@
source /SNS/PG3/shared/Utils/.venv/bin/activate > /dev/null 2>&1
python /SNS/NOM/shared/Dev/mantid_v6p8p0/build/bin/AddPythonPath.py > /dev/null 2>&1
python /SNS/PG3/shared/CALIBRATION/pg3_cal_legacy.py 2> /dev/null
/SNS/PG3/shared/autoreduce/utils/slack_msg_pre.py
+1 −0
Original line number Diff line number Diff line
@@ -3,3 +3,4 @@
source /SNS/PG3/shared/Utils/.venv/bin/activate # > /dev/null 2>&1
python /SNS/NOM/shared/Dev/mantid_v6p8p0/build/bin/AddPythonPath.py # > /dev/null 2>&1
python /SNS/PG3/shared/CALIBRATION/pg3_cal_legacy_local.py $1 # 2> /dev/null
/SNS/PG3/shared/autoreduce/utils/slack_msg_pre.py