Skip to content

Marketing Bot Campaign Queue - Cron Job Setup

This guide will help you set up a cron job to process your Marketing Bot campaign queue on your server. The cron job ensures that scheduled campaigns are executed automatically at the correct time.

What You'll Need Before Starting

  • Access to your hosting cPanel (shared hosting or VPS)
  • Your domain name where Marketing Bot is installed

Step 1: Open Cron Jobs in cPanel

  1. Log in to your hosting cPanel.
  2. Navigate to Cron Jobs (usually located under the Advanced section).

Cron Jobs Location

Step 2: Create a Per-Minute Cron Job

  1. Click Add New Cron Job or Create Cron Job.
  2. Set the cron job to run every minute using the following command:

    * * * * * curl https://yourdomainname.com/marketing-bot/campaigns/queue/worker
    

Important

Replace yourdomainname.com with your actual domain name. For example, if your domain is demo.artifism.techvill.net, the command should be:

* * * * * curl https://demo.artifism.techvill.net/marketing-bot/campaigns/queue/worker

Cron Command Setup

Tip

The cron expression * * * * * means the job will run every minute. This ensures campaigns are processed promptly and delivered on time.

Step 3: Save and Verify

  1. Click Add New Cron Job or Save button to create the cron job.
  2. Verify that the cron job appears in the Current Cron Jobs list in cPanel.
  3. Ensure the cron job status shows as active.

Cron Job List

Success! Your Marketing Bot campaign queue cron job is now set up and will process scheduled campaigns automatically.

Troubleshooting

Cron job not running?

  • Verify the domain URL in the command is correct
  • Check that your server has curl installed
  • Ensure the Marketing Bot application is accessible at the specified URL
  • Review cron job logs in cPanel for any error messages