Every production application has work that should happen without anyone pressing a button: clearing caches, generating reports, syncing data, publishing scheduled content, running the Laravel scheduler. Cron is the standard tool for the job, but editing a crontab over SSH is easy to get wrong and hard to keep an eye on.
The Cron jobs tab in SharkCluster lets you create, run, pause, monitor and get alerted about scheduled tasks for any application, without touching the server shell. This guide walks through everything it can do.

Where to find it
Open your server, select an application, and click Cron jobs in the left menu. You will see a table of every job configured for that application, with a search box, a Bulk Actions link and the ADD CRONJOB button.
The table shows, at a glance:
- Job name and command so you know what each job does
- Schedule in plain language (for example, "Every minute"), with the raw expression underneath
- Status: Healthy, Failed or Disabled
- Last 10 runs as small colored bars: green for success, red for failed, amber for slow, and outlined for missed
- Next run, calculated in your server's timezone
- Enabled toggle and an Action menu

Creating a cron job
Click ADD CRONJOB and choose how you want to define the schedule.
Option 1: Visual Schedule Builder
If you do not want to memorize cron syntax, use the visual builder.
- Enter a Job Name, such as "Hourly Database Cleanup" or "Laravel Scheduler".
- Pick a Quick Schedule Preset: every 5 minutes, every 15 minutes, hourly, daily at midnight, weekly on Sunday, or monthly on the 1st.
- Or fine-tune the five Custom Expression Parts: minute, hour, day, month and weekday. Each field is validated as you type.
- Choose a Job Type: PHP (CLI script), Python script, or Shell / Bash command.
- Optionally set a Working Directory. It is relative to your application's root, and leaving it empty runs the job from the root.
- Enter the Command and save.
As you change the schedule, a Schedule Summary card translates it into plain English and shows exactly when the job will run next, so you can confirm it before saving.
Option 2: Raw Cron String (Advanced)
If you already have crontab lines, switch to the Raw Cron String (Advanced) tab and paste them in.
- Use the format
Minute Hour Day Month Weekday Command. - Add one cron job per line to create several jobs at once. Blank lines and lines starting with
#are ignored. - When you add more than one line, each job is named after your Job Name with a number appended, so names stay unique.
- If some lines fail, the ones that succeeded are still created and the dialog stays open so you can fix the rest.
Advanced jobs run as Shell commands from your application's root folder. A built-in help panel explains the rules and offers one-click examples you can add to the text box.
Running PHP in cron the right way
Most cron problems come from the environment, not the schedule. A few rules save a lot of debugging:
- Use the full PHP path. Cron runs with a minimal PATH, so write
/usr/bin/php(or a specific version such as/usr/bin/php8.2) instead of justphp. If you are unsure, runwhich phpon the server. - Mind the folder. Jobs start in your application root, so relative paths like
php backup.phpwork. To use a sub-folder, usecd folder && /usr/bin/php script.php. - Control the output. Append
>> /dev/null 2>&1to silence it, or redirect to a log file such as>> storage/cron.log 2>&1. - Check file permissions. The job runs as the user you pick in Assign Cron Allow, so that user must be able to read your files.
A few examples you can use as a starting point:
*/15 * * * * /usr/bin/php backup.php
* * * * * /usr/bin/php artisan schedule:run >> /dev/null 2>&1
0 2 * * * cd cron && /usr/bin/php daily-report.php
0 * * * * /usr/bin/curl -fsS https://example.com/cron.php > /dev/nullChoosing who the job runs as
The Assign Cron Allow setting decides which system user executes the job: Root User or the Application Master User. Prefer the application user whenever the task only touches your app's files, and reserve root for tasks that genuinely need it.
History retention
Each job keeps a run history, and you choose how long to keep it with History Retention (Days). The maximum depends on how often the job runs. Jobs that fire every minute can keep 1 day, jobs on a fixed daily time can keep up to 365 days, and everything else can keep up to 30 days. This keeps the history useful without letting very frequent jobs fill up storage.
Timezones: when does it actually run?
Schedules run in your server's timezone, and the Cron jobs screen detects and shows it. The "Next run" times in the builder and in the table are calculated for that timezone, so they match what the server will really do, even if you are working from a different part of the world.
Day-to-day management
Open the three-dot Action menu on any job to:
- Monitor the job in a detailed side panel
- Run Now to execute it immediately without waiting for the schedule
- Pause Job / Resume Job (the Enabled toggle does the same, with a confirmation step)
- Edit Job to change the schedule, command or settings
- Alert Settings to configure notifications
- Delete Job to remove it
Need to clean up several jobs? Tick their checkboxes and use Bulk Actions to delete them together. Deletion cannot be undone, so the dialog asks you to confirm first.
Monitoring: see what your jobs are really doing

The Monitor panel turns a cron job from a black box into something you can reason about. It opens as a side panel with the job name and a status badge (Healthy, Failed or Disabled) at the top, and every action you need is one click away: Run now, Pause, Edit, View Logs, Alerts, Refresh and Delete. You can also expand the panel to full width for a bigger view.
The Monitor panel showing stats, last 20 runs, duration chart and run history
Stats at a glance
Six summary cards sit at the top of the panel:
- Success rate, for example "100.0%, 2 of 2 runs"
- Last success, with the time and how long the run took
- Avg / Slowest duration
- Failed runs in the selected period
- Missed runs, which tells you whether every run started on time
- Current streak of successful (or failed) runs in a row
Last 20 runs
Below the cards, a timeline shows your last 20 runs from oldest to newest. Green means success, red means failed, amber means slow and outlined means missed. Hover over any block for the details of that run.
Duration chart
The duration chart plots how long each run took, with markers for the minimum, average and maximum. Switch it between the last hour, 24 hours, 7 days and 30 days to make slowdowns easy to spot. If your job has no timeout configured, the panel tells you with a "No timeout set" label.
Run history

The run history table lists every run with its start time, duration, result, exit code and trigger (Scheduled or manual). Filter it by All, Success, Failed, Missed or Slow; each filter shows a count so you can see how many runs fall into it.
Click View on any row to open that run's details: the exit code, duration, trigger, the working directory it ran in, and the full output (stdout and stderr) with the exact command that was executed. A Copy button lets you grab the output to share or paste into a ticket, and All runs takes you back to the list.
Run details with exit code, duration, trigger, working directory and command output
Live logs

Click View Logs to open a live log viewer for the job in a terminal-style panel. A badge at the top shows how many lines are loaded. Choose how many lines to show (15, 25, 50 or 100) and use the refresh button to pull the latest output on demand.
Live log viewer showing the latest output lines for a cron job
It is the fastest way to find out why a job failed, because errors are captured automatically. For example, a "command not found" message in the logs usually means the command was missing the full path to PHP, or the script path is wrong relative to the working directory. Fix the command, hit Run now, and refresh the logs to confirm.
Alerts: hear about problems before your users do

Open Alert Settings for a job (from the Action menu or the Alerts button in the Monitor panel) and decide what is worth a notification. The panel header shows the job name and which channels are on, such as "email and in-app".
Alert settings panel with failure, missed-run, long-run, recovery and email options
- When it fails: alert after 1, 2, 3 or 5 failed runs in a row. Two in a row is a sensible default because it filters out one-off blips.
- When it does not run: alert if a run has not started within a grace period of 1 to 60 minutes.
- When it runs too long: alert when a run exceeds twice its average duration or a limit you set in minutes.
- When it recovers: get told when a failing job succeeds again. Repeat alerts for the same job are muted for an hour to avoid noise.
- Email notification: optionally receive alerts by email as well as in the app.
Team access
If you manage a server with a team, access to cron actions can be controlled with permissions. Team members only see the ADD CRONJOB button and Bulk Actions if they have been granted those permissions for the server.
Best practices
- Name jobs clearly. "Nightly invoice export" beats "cron 3".
- Test with Run Now before relying on the schedule.
- Stagger heavy jobs instead of putting everything at midnight.
- Log output to a file for jobs you may need to debug later.
- Set up alerts for anything that matters, especially missed-run alerts for critical tasks.
- Use the least privileged user that can do the job.
- Review the duration chart now and then. A job that keeps getting slower is usually a warning sign.
Wrapping up
With the visual builder for quick setups, raw cron strings for power users, live logs, run history and flexible alerts, SharkCluster gives you complete control over scheduled tasks without a single SSH session. Open the Cron jobs tab on your next application and schedule your first job in under a minute.
Run this on your own VPS
Deploy servers and applications on infrastructure you own, managed from one panel — backups, caching, firewall and monitoring included.

