meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cron [2023/06/22 17:10] – [Cron Scripts] johnnycron [2023/10/12 17:11] (current) – [Cron Scripts] bigbug
Line 1: Line 1:
 ====== Cron ====== ====== Cron ======
  
-ITFlow comes packaged with several PHP scripts that are intended to be run automatically via Cron. Running scripts via Cron ensures that things happen automatically in the background without requiring a logged in user+ITFlow comes with an array of PHP scripts that are meant to be executed automatically using Cron. The operation of scripts via Cron guarantees that actions are carried out autonomously in the background, eliminating the need for user to be logged in.
  
-==== Cron Enable & Key ====+==== Cron Activation & Key ====
  
-In order to ensure only Cron executes the scripts (and not some random user/bot navigating to the pages)you must enable cron & generate and provide a Cron Key.+For the sole execution of the scripts by Cron, not by an arbitrary user or bot visiting the pages, it is necessary to activate Cron and generate a Cron Key.
  
-Login to ITFlow as an adminNavigate to **Settings** > **Alerts**:+Sign in to ITFlow with administrative rightsProceed to **Settings** > **Alerts**:
   * Enable cron   * Enable cron
   * Generate a Cron Key   * Generate a Cron Key
Line 13: Line 13:
 ==== Cron Scripts ==== ==== Cron Scripts ====
 The following scripts should be added to your Cron: The following scripts should be added to your Cron:
-  * php /full/path/to/**cron.php** **[KEY]** -- Should execute at 2 AM daily: cleanup, alerts, recurring invoices, etc+  *NOTE: THESE ARE SETUP BY DEFAULT IF YOU INSTALLED ITFLOW USING THE [[installation_script|SCRIPT]] 
-  * php /full/path/to/**cron_ticket_parse.php** **[KEY]** -- Should execute every minparses tickets + 
-  * php /full/path/to/**cron_mail_queue.php** **[KEY]** -- Should execute every minUsed for emailing within the application+  * ''php /full/path/to/**cron.php** **[KEY]**'' -- This should run daily at 2 AM for tasks such as cleanup, alerts, recurring invoices, and more
 +  * ''php /full/path/to/**cron_ticket_email_parser.php** **[KEY]**'' -- This should run every minuteit interprets emails and creates/updates tickets 
 +  * ''php /full/path/to/**cron_mail_queue.php** **[KEY]**'' -- This should run every minuteit's used for in-app email sending 
 +  * ''php /full/path/to/**cron_domain_refresher.php** **[KEY]**'' -- This should run every day: each run will update the details of the oldest updated domain 
 + 
 +Please note: Swap [KEY] with your actual Cron key, and don't include the brackets [ ]