Obelisk
EN
Chapter 40 of 43Next chapter
Administration & maintenance

Manage scheduled jobs and routine maintenance

Obelisk performs some work automatically: it processes call history, analyzes recordings and prepares scheduled reports. These background tasks are called jobs. Use this chapter when you need to check why a task has not run or pause new runs for maintenance.

Obelisk documentation

Check schedule and readiness together

There are two schedules to check. Linux starts Obelisk’s application jobs, while the MariaDB/MySQL event scheduler runs the SQL events that prepare historical call data. A working live Dashboard does not confirm that historical reports are being updated.

Each feature also needs its own settings. Automatic recording analysis and weekly/monthly AI reports need AI configured; sending reports needs SMTP too. Audio deletion has separate controls. Enabling jobs alone does not authorize recording deletion: set retention and deletion according to your agreed backup and recording policy.

Open Administration → Database and procedures → DB Cron to inspect the Obelisk SQL events. To pause or reactivate all Obelisk processing, use the commands in this guide. The global MariaDB/MySQL scheduler is managed on the database server and may also run events belonging to other applications.

Pause and reactivate Obelisk processing

Use these commands from the original installation kit to pause or restart Obelisk’s scheduled processing. The examples use the standard paths. If your installation uses a different kit folder, website path, PHP executable or source database, replace those values with the ones in its final summary.

Pausing stops new scheduled runs for history sampling, call reports, audio analysis, email reports and cleanup. Processes already running can finish. FreePBX continues handling calls and recording its original CDR and queuelog data.

These commands use the saved installation information and may ask for SQL administrator credentials. Keep the installation journal, which records the completed steps. Suspension prevents scheduled starts; an administrator can still start a job manually.

  1. Pause the scheduled processing

    Read the result: both the Obelisk Linux jobs and SQL events must be disabled. If one operation fails, correct the reported cause and check both again before maintenance.

    Command
    cd /root/obelisk-install &&
    sudo bash install.sh --disable-jobs --path /var/www/html/obelisk --php /usr/bin/php --database asteriskcdrdb
  2. Reactivate the scheduled processing

    After maintenance, run this command and check both Linux jobs and SQL events. Custom schedules are preserved and audio deletion remains subject to its own settings. Read any scheduler warning before answering: it can affect other applications.

    Command
    cd /root/obelisk-install &&
    sudo bash install.sh --activate-jobs --path /var/www/html/obelisk --php /usr/bin/php --database asteriskcdrdb
  3. If activation asks to enable the SQL scheduler

    The MariaDB/MySQL event scheduler starts scheduled SQL processing, including Obelisk’s min_queue and min_out events. This question may appear when reactivating jobs if other applications have enabled events and the local scheduler is off, or an earlier refusal still requires consent for startup configuration. Answering y can allow those other events to run now or after a database restart. Check with the database administrator first. Enter or n preserves the current scheduler and its startup configuration; enabled Obelisk events run only while the scheduler is ON. The final summary separately reports current activity and whether startup configuration was verified. If persistence is unverified, resolve the warning and repeat the reactivation command shown above. A remote server’s administrator manages its scheduler.

  4. Check that processing actually resumes

    Read the Linux schedule result, the SQL event result and whether the SQL scheduler will start after a database restart. Check a new run in Administration. If a warning remains, correct its cause and repeat the same activation command. Pausing Obelisk does not stop FreePBX or prevent an administrator from starting a job manually.

Job or eventWhat pauses
loggerHistorical sampling of live queue statistics
audioAutomatic recording analysis with AI
weeklyGeneration and email delivery of weekly reports
monthlyGeneration and email delivery of monthly reports
cleanerScheduled cleanup enabled by the administration settings
retentionApplying the configured recording-retention rules
min_queue / min_outSQL processing of queue and outbound calls for historical reports

If the SQL scheduler reports a startup problem

For the database administrator: on a local server, activation checks or creates z-obelisk.cnf and backs up changed configuration. Conflicting files are preserved. If the SQL scheduler is already ON, a startup-setting error is reported while Obelisk’s events/jobs can still be activated. If it is OFF, that startup check must pass before the global setting is changed with your consent. --disable-jobs leaves the global setting and file unchanged. The remote database administrator manages those settings on a remote server.

Check that automatic tasks have restarted

After maintenance, check that the expected tasks run again and record the result. If a task is disabled in its settings, enabling the schedule will not enable that feature. Keep logs and recovery files until the related operation is complete and checked. To free disk space, use the documented cleanup action for the data concerned.

Locate a delayed background task

  1. Recent calls are missing from reports

    In Database and procedures, check that the scheduled SQL events are enabled and running. Compare a known call with its report date range. Historical reports are processed in the database, separately from the live connection: a working live Dashboard can coexist with delayed historical reports.

  2. Audio analysis or email reports are missing

    In System and utilities, check pending or suspended analyses, then the AI and SMTP settings. Correct the reported cause before returning an analysis to the queue. For weekly or monthly reports, check recipients and the scheduled period. Generating an AI report on screen does not also send the scheduled email.

Background processing
Email, retention and maintenance

Request your demo

The complete Obelisk experience. Tell us about your contact center.

Loading the request form…