See past runs and their output
Every run of every schedule is recorded: when it was due, when it started, how it ended and what it printed. This article shows where to find that record and how to read it when a task misbehaves.
Open the history
- Open Account → Hosting → your site → Schedules, then the History tab.
- Use Schedule to show one schedule's runs, and Result to show only failures, skipped runs or missed runs.
- Click a run to open its details and output.
To see one schedule's history straight away, click History in its menu on the list.
What each run shows
| Column | Means |
|---|---|
| Time | When the run started, in the schedule's time zone |
| Schedule | Which schedule ran |
| Started by | Why it ran (see below) |
| Result | How it ended (see below) |
| Duration | How long it ran |
| Late by | How long after its due time it started. Usually a few milliseconds |
Open a run for more:
- the full output, with Download for the whole log
- the exit code, or the answer code for a web address
- the due time and the actual start time, to the millisecond
- the most memory it used and the processing time it took
- which try it was, when retries are on
Started by
| Label | Means |
|---|---|
| Schedule | Its time came round |
| Run now | Someone clicked Run now |
| Retry | An earlier try failed and retries are on |
| Catch-up | It was missed while the scheduler was stopped, and Catch up missed runs is on |
| After another job | It follows another schedule with Run after |
| Imported | It ran as a cron job before the schedule moved to Schedules |
Results
| Result | Means | What to try |
|---|---|---|
| Worked | Ended with exit code 0, or a web address answered with a success code | Nothing |
| Failed | Ended with another exit code | Read the output for the error. The exit code table below helps |
| Timed out | Went past its Time limit | Raise the limit, or do less in each run |
| Out of memory | Went past its Memory limit | Process less at a time, or raise the limit |
| Stopped | Someone clicked Stop, or If still running was Replace | Nothing, unless you didn't expect it |
| Skipped | Was due while the last run was still going, and If still running is Skip | Run less often, or make the task faster |
| Missed | Was due while the scheduler was stopped | Turn on Catch up missed runs if these runs matter |
| Couldn't start | Your account had too many processes running at that moment | Check other tasks that run at the same time. Retries help |
| Web address error | The address didn't answer, timed out, or answered with an error code | Open the address in a browser. Check the expected answer in the schedule |
Exit codes
| Exit code | Usual meaning | What to try |
|---|---|---|
| 0 | Worked | Nothing |
| 1 | The script reported an error | Read the output for its message |
| 2 | The command was used wrongly | Check its options and quoting |
| 126 | The file can't be run as a program | Choose PHP script or another script type, or put the interpreter in front |
| 127 | Command not found | Use the full path, such as /usr/local/bin/php instead of php |
| 137 | Ended after using too much memory or time | Read the result. It says which limit it reached |
Watch a run live
When you click Run now, or open a run that's still going, its output appears as it prints, updated every second. The panel shows how long it has been running. Stop ends it.
What we keep
| Kept | How much |
|---|---|
| Run records | Your plan's days of history (Essential 7, Business 30, Pro 90), or about the most recent 10,000 runs across all your schedules, whichever is fewer. Very frequent schedules use up the run count faster, so history covers fewer days |
| Output for each run | Essential 256 KB, Business 1 MB, Pro 4 MB. A longer log keeps its first 64 KB and its end |
| Runs with output, per schedule | The number in Logs to keep, 20 unless you change it |
| All output together | Essential 20 MB, Business 50 MB, Pro 200 MB. When it's full, the oldest output is deleted first |
Run records and output are stored in your account and count toward its disk space. They never grow past the amounts above. When you delete a schedule, its past runs stay in history until they age out.
If your account runs out of disk space, schedules keep running. Output isn't saved until space is free again, and the status bar on Schedules says so.
Missed runs and late starts
The scheduler records a run as Missed when it wasn't running at the due time, for example while your account was suspended. It restarts on its own within 15 minutes if it stops. If you see missed runs you can't explain, open a support request with the times.
Late by is usually a few milliseconds. Larger numbers mean your account was busy at that moment, or the run waited for a free slot because your plan's limit of runs at once was reached. See Schedule limits by plan.
If something goes wrong
| Problem | Fix |
|---|---|
| No runs show | The schedule hasn't been due yet. Check Next run on the list, or click Run now |
| A run shows Worked, but the task didn't do its work | Your script ended without reporting the error. Make it exit with a non-zero code when it fails, such as exit(1); in PHP |
| The middle of the output is missing | The output was longer than your plan keeps for one run. Write long logs to a file in your account instead |
| Old runs are gone | They're older than your plan's history, or very frequent schedules filled the run count, or the output was deleted to stay under the total. Download logs you need to keep |
[redacted] appears in output |
A secret environment variable's value was printed. That's expected. See Retries, time limits and other job options |
Still stuck? Ask us and we'll walk you through it.
