Content

There are few tasks which need in processing of all runs, e.g. check data quality, check detector pixel status etc. This tool is intended to automatically process each data run with some pre-defined command line.

This note has a short description of entire system and references to code.

Control scripts

cron_auto_proc

Job control is performed using cron-job, currently resides in ~/bin/

~/bin/cron_script_1h.sh # hourly kicking ass of the next script, output goes to ~/test_crontab_1hour
~/bin/cron_auto_proc.sh # sets environment and runs python script proc_new_datasets (PSCalib/app)

can be moved to /etc/cron.hourly/

proc_new_datasets

PSCalib/app/proc_new_datasets

proc_control

PSCalib/app/proc_control

Process name

procname='pixel_status' stands for butch execution of the command line det_ndarr_data_status

det_ndarr_data_status

Detector/app/det_ndarr_data_status

Subprocess utilities

Datasets processing DB

File system based DB is used to keep info about processed runs. Everything lives under master directory, for now /reg/g/psdm/logs/run_proc

/reg/g/psdm/logs/run_proc/<process-name>/

/reg/g/psdm/logs/run_proc/pixel_status/experiments.txt - list of experiments which need to be processed

/reg/g/psdm/logs/run_proc/pixel_status/<instrument>/ - subdirectory for each instrument

/reg/g/psdm/logs/run_proc/pixel_status/<instrument>/<experiment>/ - subdirectory for batch submission and processing log-files

/reg/g/psdm/logs/run_proc/pixel_status/<instrument>/<experiment>-proc-runs.txt - file with list of processed runs, e.g.

/reg/g/psdm/logs/run_proc/pixel_status/CXI/cxil2316-proc-runs.txt

Run for processing finding utilities

Commands

Manual launch of the scripts in stead of cron-job:

See current processing status

Print / control DB status

References