There are some processes that are triggered automatically in BRAINCoGS.
All these processes are handled by u19proc2 (g-bcogs-u19proc2.pni.princeton.edu) virtual machine administered by PNI Help. Contact Garrett T. McGrath gmcgrath@princeton.edu for permissions to it.
All processes are handled by u19prod user account so it's not linked to any personal account.
Executes main_old_log_deletion() Deletes old logs (> 2 weeks) from all the cronjobs from their main log directory
Executes main_live_session_stats_deletion() Moves "old: (> 2 weeks) records from acquisition.LiveSessionStats to acquisition.HistoricSessionStats to keep former table lightweight for the live stats monitor routine
Executes main_noDB_backup Copy of auxiliary files for offline ViRMEn mode. More info here
Location in u19proc2: /home/u19prod/Datajoint_projs/U19-pipeline-matlab/scripts/call_u19_night_cronjob.sh
Overview: Call populate_tables.m script. Ingest all Behavior related tables from acquision.SessionStarted & acquisition.Session new records from that day. Ingest schedule for next day. Check the populate_tables.m script for more information
Executes cronjob_locked_tables_alert() Check if there are locked tables at startup (In theory locked tables is an indicator of a non writable DB). Dev-notifications alert
Executes cronjob_schedule_check() Check if for next day there are no scheduled subjects for training. If that happens most-likely schedule population script failed. Dev-notifications alert.
Location in u19proc2: /home/u19prod/Datajoint_projs/U19-pipeline_python/u19_pipeline/alert_system/rig_maintenance/call_cronjob_check_rig_maintenance.sh
Location in u19proc2: /home/u19prod/Datajoint_projs/U19-pipeline_python/u19_pipeline/alert_system/automatic_job/call_populate_missing_syncbehavior.sh
Overview: Call populate_missing_sync_behavior_ephys.py script . Populates ephys_pipeline.BehaviorSync table. Since BehaviorSync requires behavior data to be already present in the DB for the session (done here at 3 a.m) the population of this table is done outside the ephys pipeline and done here instead.
Location in u19proc2: /home/u19prod/Datajoint_projs/U19-pipeline_python/u19_pipeline/alert_system/water_weigh_alert/call_cronjob_water_weigh_alert.sh
Overview: Call water_weigh_alert.py script . Checks if subjects were watered, weighed, trained & transported given the current schedule. Alert of missing actions are sent to subject-health channel.
Location in u19proc2: /home/u19prod/Datajoint_projs/U19-pipeline_python/u19_pipeline/alert_system/live_monitor_alert/call_cronjob_live_monitor_alert.sh
Overview: Call Main Live monitor Function . Checks if there are subjects with "long" time (> 20 min) without a valid successful trial on training. If there are raise alarm