Workflow Dependencies
Dependencies let you chain workflows together so that one workflow only runs after another has completed. This is the foundation for building reliable, multi-step data pipelines where execution order matters.
The Concept
Every workflow can depend on one or more other workflows. When dependencies are configured, hibase will not execute the workflow until all its dependencies have completed — even if the workflow is due according to its cron schedule.
This means you don't need to stagger schedules with buffer time between dependent workflows. You can schedule all related workflows at the same interval (e.g. every 30 minutes), and hibase takes care of the execution order automatically.
Setting Dependencies
On the workflow properties page, two fields control dependencies:
- Depends on Workflows — Select one or more upstream workflows that must complete before this one starts
- Require Dependencies Success — When enabled, this workflow only runs if all dependencies completed without errors. When disabled, the workflow triggers regardless of whether dependencies succeeded or failed
How the Scheduler Resolves Dependencies
The scheduler evaluates each workflow through a three-phase pipeline: Due → Ready → Execute.
A workflow can be due (its cron time has passed) but not ready — because one or more dependencies are blocking it. A dependency blocks execution when any of the following are true:
| Blocking Condition | Description |
|---|---|
| Awaiting execution | The dependency is itself due or queued — it hasn't finished yet |
| Blocking error | The dependency's last scheduled run ended in error, and Require Dependencies Success is enabled |
| Hasn't run since last cycle | The dependency completed before this workflow's own last completion — no new data has been produced |
Once all dependencies clear these checks, the workflow becomes ready and is queued for execution. Even within the queue, workflows with dependencies still in the queue wait until those dependencies execute first — ensuring correct ordering.
For the full technical details, see the Scheduling page.
Example: Orders and Order Items
Imagine you're syncing an orders table and an order_items table to your data warehouse every 30 minutes. The items import must wait for orders to complete, because of referential integrity.
Without dependencies, you'd need to add buffer time between schedules (e.g., orders at :00, items at :15) and hope the first always finishes in time. With growing data volumes, this becomes fragile.
With dependencies:
- Set both workflows to run every 30 minutes
- On the
order_itemsworkflow, addordersas a dependency - Enable Require Dependencies Success
hibase now guarantees:
- Orders always runs first
- Items only starts after orders completes successfully
- If orders fails, items is held until orders is re-run and succeeds
- No wasted buffer time — items fires as soon as orders finishes
Circular Dependencies (Loops)
Circular dependencies are forbidden. If Workflow A depends on B and B depends on A, the system would deadlock (both waiting for the other). hibase prevents you from creating dependency loops.
Unblocking with Manual Reruns
If a dependency is blocking because of an error (and Require Dependencies Success is on), you can manually re-run the failed upstream workflow. If the manual rerun succeeds, hibase recognizes the new successful result and unblocks the downstream workflow on its next scheduled cycle.
Viewing Dependencies
The Dependency Graph provides a visual representation of your entire dependency tree — showing how workflows relate to each other, where errors are blocking execution, and which workflows are overdue.