Jump to content
  • 0

cron job


mukesh

Question

3 answers to this question

Recommended Posts

  • 0

The Cron Command is an example command derived from what Blesta knows about the system it is installed on. It is not a setting that controls the cron or relates in any way to an actual cron job. A cron job would need to be setup on the server separately (e.g. through cPanel).

The Cron Key is a unique key you can use to run the cron manually in Blesta. It should be kept secret so that others cannot run the cron. It is not required when a cron job runs via CLI mode, but it is when you click the "Run Cron Manually" button as shown in your screenshot.

I would recommend you do the following:

  1. Click "Generate Code" to create a new cron key.
  2. Click "Update Cron Key" to save that change.
  3. Create a cron job on your server. This is done outside of Blesta, typically through a control panel (e.g. cPanel) or via command line. This is where you would set the frequency to 15 minutes, and you can use the example "Cron Command" as a reference to what to set for the cron job.
    1. The "Cron Command" field in Blesta will still show 5 minutes (i.e. "* /5 * * * *") because it is only an example.
  4. Verify the cron has been running successfully by checking the last run time for automation tasks under Settings > Company > Automation.
Link to comment
Share on other sites

  • 0
1 hour ago, Tyson said:

The Cron Command is an example command derived from what Blesta knows about the system it is installed on. It is not a setting that controls the cron or relates in any way to an actual cron job. A cron job would need to be setup on the server separately (e.g. through cPanel).

The Cron Key is a unique key you can use to run the cron manually in Blesta. It should be kept secret so that others cannot run the cron. It is not required when a cron job runs via CLI mode, but it is when you click the "Run Cron Manually" button as shown in your screenshot.

I would recommend you do the following:

  1. Click "Generate Code" to create a new cron key.
  2. Click "Update Cron Key" to save that change.
  3. Create a cron job on your server. This is done outside of Blesta, typically through a control panel (e.g. cPanel) or via command line. This is where you would set the frequency to 15 minutes, and you can use the example "Cron Command" as a reference to what to set for the cron job.
    1. The "Cron Command" field in Blesta will still show 5 minutes (i.e. "* /5 * * * *") because it is only an example.
  4. Verify the cron has been running successfully by checking the last run time for automation tasks under Settings > Company > Automation.

is there any example set up in cpanel.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...