Scheduling
Workflows can run automatically on a schedule. hibase uses cron expressions for scheduling, combined with a dependency-aware execution engine that ensures workflows run in the correct order.
Cron Expression
The Schedule field on the workflow properties page accepts a standard cron expression. A human-readable description is shown automatically below the field so you can verify the expression is correct.
The schedule is evaluated in the company's timezone, ensuring that expressions like "daily at 8 AM" always mean 8 AM local time, regardless of daylight saving changes.
Common examples:
| Expression | Meaning |
|---|---|
*/30 * * * * |
Every 30 minutes |
0 */2 * * * |
Every 2 hours |
0 8 * * * |
Daily at 8:00 AM |
0 0 * * 1 |
Every Monday at midnight |
0 6 1 * * |
First day of each month at 6:00 AM |
Active Toggle
The Active toggle enables or disables scheduled execution:
- Active: The workflow runs on its cron schedule
- Inactive: The workflow does not run on schedule, but can still be triggered manually via Run now
Deactivated workflows appear dimmed in the workflow list to make them easy to distinguish from active ones.
How Scheduled Execution Works
The scheduler runs periodically and evaluates each workflow through a three-phase pipeline: Due → Ready → Execute. A workflow must pass all phases before it runs.
Phase 1: Due
A workflow is due when all of the following are true:
| Condition | Description |
|---|---|
| Active | The workflow's Active toggle is on |
| Has a next start time | A next_start_at timestamp exists (computed from the cron expression) |
| Past its scheduled time | next_start_at is at or before the current time |
| Not already running | The workflow doesn't have an active execution in progress |
Once a due workflow passes this check, its next_start_at is immediately advanced to the next cron occurrence, so it won't be picked up again in the next scheduler cycle.
Phase 2: Ready (Dependency Check)
A due workflow is ready only if none of its dependencies are blocking. For each dependency, the scheduler checks three conditions — if any of them are true, the dependency is considered blocking and the workflow is not ready:
| Blocking Condition | Description |
|---|---|
| Awaiting execution | The dependency is itself due or already queued — it hasn't run yet in this cycle |
| Has a blocking error | The dependency's last scheduled run ended in error AND the workflow has Require Dependencies Success enabled (see below). A successful manual rerun of the dependency clears this block |
| Didn't run after self | The dependency's last scheduled completion is before this workflow's own last scheduled completion — meaning the dependency hasn't produced new data since this workflow last ran |
A workflow without any dependencies is always ready.
Phase 3: Queue Execution
Ready workflows are added to a per-company execution queue. Before a queued workflow is actually dispatched for execution, there is one final gate:
- If the workflow has dependencies that are still in the queue (scheduled but not yet executed in this cycle), it waits. Only workflows whose dependencies have all left the queue are dispatched.
This ensures correct execution order even when multiple interdependent workflows become due at the same time.
Manual Runs Bypass Due Checks
When you trigger a workflow manually via Run now, Custom run, or Run with dependents, the due check is bypassed entirely — the workflow is added to the queue immediately regardless of its schedule or active state. Manual runs are also prioritized in queue ordering.
Require Dependencies Success
When the Require Dependencies Success toggle is enabled on a workflow, it adds an extra constraint:
If any dependency's last scheduled run ended in error, this workflow will not be considered ready and will not execute.
This prevents cascading failures — if an upstream workflow fails, downstream workflows that depend on its output won't run with stale data.
Unblocking with Manual Reruns
If a dependency is blocking due to an error, you can manually re-run the failed dependency (via Run now). If the manual rerun succeeds, it clears the error block — the downstream workflow becomes ready again on its next scheduled cycle.
This works because the system distinguishes between scheduled runs and manual runs: a manual rerun that ends successfully is recognized as having produced valid data, even though it wasn't a scheduled execution.
Schedule Warnings
The workflow list shows a warning chip next to the Next start column if the next scheduled run is more than one hour in the past. The tooltip explains: "The next scheduled run is more than one hour in the past. Something in the dependency tree might be preventing this workflow from running as scheduled."
This typically indicates one of:
- A dependency is stuck or failing (and Require Dependencies Success is on)
- A dependency hasn't run since this workflow's last execution
- The workflow is queued but waiting for a dependency to execute first
Stale Detection and Retries
If a running workflow stops sending heartbeats (e.g. due to a worker crash), it is marked as stale. Stale workflows are automatically rescheduled with a random delay (between 1 and 5 minutes), up to a maximum retry count. This prevents a single worker failure from permanently blocking a pipeline.