Skip to content

Background Tasks

Monitor and manage background jobs and scheduled tasks.

Background Tasks shows all background jobs, their execution status, and scheduling. Monitor long-running operations and troubleshoot job failures.

Navigation: Admin → Tools → Background Tasks

Understanding Background Tasks

Background tasks are jobs that run asynchronously:

  • Email delivery
  • Report generation
  • Data synchronization
  • Backup execution
  • Scheduled maintenance
  • ERP integration

Task Queue

Shows all tasks with:

  • Task Name - What the job does
  • Status - Pending/Running/Completed/Failed
  • Scheduled - When task is scheduled
  • Started - When job started
  • Completed - When job finished
  • Duration - How long job took
  • Result - Success/Failed/Error message

Task Statuses

Status Meaning
Scheduled Waiting for scheduled time
Pending Queued, waiting to run
Running Currently executing
Completed Finished successfully
Failed Job failed with error
Cancelled Job was cancelled

Filtering Tasks

Filter by:

  • Date Range - Today, This Week, All
  • Task Type - Email, Report, Sync, etc.
  • Status - All, Running, Completed, Failed
  • Result - Success, Failed, Warnings

Task Details

Click task to view:

  • Full Description - What task does
  • Scheduled Time - When scheduled
  • Start/End Times - Actual execution times
  • Duration - Milliseconds elapsed
  • Output/Log - Task execution log
  • Error Details - Failure reason (if failed)

Retrying Failed Tasks

Manual Retry

  1. Find failed task
  2. Click Retry
  3. System re-runs task
  4. Monitor progress

View Retry History

See previous attempts and results.

Scheduling Tasks

View Schedule

Current task schedule shows:

  • Email Delivery - Every 5 minutes
  • Backups - Daily at 2:00 AM
  • Reports - Scheduled times
  • Sync Jobs - Configured intervals

Adjust Schedule

  1. Click task
  2. Edit schedule (if available)
  3. Save changes
  4. Schedule updates immediately

Task Performance

Monitoring Long-Running Jobs

  1. Review task list
  2. Check duration of long jobs
  3. If excessively slow, investigate:
  4. Database load
  5. Network connectivity
  6. Server resources
  7. Error logs

Optimizing Performance

  • Distribute tasks across time
  • Don't schedule all jobs at same time
  • Monitor server resources
  • Archive old task logs

Common Background Tasks

Email Delivery

Sends queued emails periodically:

  • Status: Should complete successfully
  • Frequency: Every 5-15 minutes
  • If failing: Check email settings

Backups

Runs scheduled backups:

  • Status: Should complete daily
  • Frequency: Daily at configured time
  • If failing: Check backup settings, disk space

Report Generation

Generates requested reports:

  • Status: Completes as requested
  • Frequency: On-demand or scheduled
  • If failing: Check report configuration

ERP Sync

Synchronizes data with ERP system:

  • Status: Completes per schedule
  • Frequency: Configurable interval
  • If failing: Check ERP connection settings

Troubleshooting Failed Tasks

Task Failed

  1. Click task to view error
  2. Read error message
  3. Identify issue:
  4. Configuration - Settings wrong
  5. Permission - Access denied
  6. Resource - Out of memory, disk space
  7. Network - Connection failed
  8. Dependency - Required service unavailable
  9. Fix underlying issue
  10. Retry task

Task Not Running

  1. Verify task is scheduled
  2. Check scheduler is enabled
  3. Review system logs
  4. Restart if needed