Adding a Cron for Tracking

Written By Margaret Tilton (Administrator)

Updated at March 12th, 2025

Table of Contents

This page tracks whether crons on InsideCIRES have been completed: https://insidecires.colorado.edu/dashboard/system_status_cron.php.

To add a cron for tracking

  1. Add a row for the cron to the CRM.Cron table:
    • CronName = name of script file
    • CronType = general purpose (Email, CIW Data Pull, etc.)
    • Application = insidecires application/folder (pmt, proposals, etc.)
    • Description
    • Cadence (D for Daily, W for Weekly)
  2. In your cron script, add the following:
    • require_once(dirname(__FILE__) . '/../../../root/cron/cron_functions.php'); // with other require/includes
    • $startTime = time(); // at beginning of script
    • updateCronTable($db,basename(__FILE__),$startTime);  // at end of script, but before closing $db