Some processes in BRAINCoGS are triggered automatically.
All these processes are handled by the u19proc2 (g-bcogs-u19proc2.pni.princeton.edu) virtual machine, administered by PNI Help. Contact Garrett T. McGrath (gmcgrath@princeton.edu) for permissions.
All processes run under the u19prod user account, so they are not linked to any personal account.
Executes main_old_log_deletion(): deletes old logs (> 2 weeks) from all the cronjobs in their main log directory.
Executes main_live_session_stats_deletion(): moves "old" (> 2 weeks) records from acquisition.LiveSessionStats to acquisition.HistoricSessionStats to keep the former table lightweight for the live stats monitor routine.
Executes main_noDB_backup: copies 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. Ingests all behavior-related tables from acquisition.SessionStarted and acquisition.Session for new records created that day, and ingests the schedule for the next day. Check the populate_tables.m script for more information.
Executes cronjob_locked_tables_alert(): checks whether there are locked tables at startup (in theory, locked tables indicate a non-writable DB). Sends a dev-notifications alert.
Executes cronjob_schedule_check(): checks whether no subjects are scheduled for training the next day. If that happens, the schedule population script most likely failed. Sends a 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 the ephys_pipeline.BehaviorSync table. Since BehaviorSync requires the session's behavior data to already be present in the DB (done here at 4 a.m.), this table is populated outside the ephys pipeline, 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 whether subjects were watered, weighed, trained, and transported according to the current schedule. Alerts for missing actions are sent to the 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 whether any subjects have gone a "long" time (> 20 min) without a valid, successful trial during training. If so, raises an alarm.