Deploying

Once you have authored and tested your GroupBy, Join or StagingQuery, you have several options for deploying them to production.

Deployment Modes

run-adhoc

Deploys the online components of a single entity in a one-off manner. Useful for testing feature fetching without committing to a recurring schedule. Note: streaming jobs launched via run-adhoc will not be restarted automatically on failure.

zipline hub run-adhoc --end-ds 2026-04-05 compiled/group_bys/aws/user_activities.v1__1

After a workflow run is created, you can monitor it in the Zipline.AI Hub UI, from the CLI (see Monitoring Workflows), or by polling the Workflow Status API.

schedule

Schedules a single GroupBy or Join for recurring execution. This ensures the relevant online and offline jobs run daily, and keeps any streaming job alive by restarting it on failure.

zipline hub schedule compiled/group_bys/aws/user_activities.v1__1

For schedule syntax, output partition cadence, and sub-daily semantics, see Schedules.

schedule-all

Schedules all configs based on their versions in the main/master branch. This is intended to be triggered as part of your CI pipeline so that merging changes automatically keeps scheduled jobs in sync.

zipline hub schedule-all --cloud aws

Targeting an environment with --env

schedule-all takes an --env flag that selects which compile output to read and which configs to deploy:

zipline hub schedule-all --cloud aws --env prod    # default — reads compiled/
zipline hub schedule-all --cloud aws --env canary  # reads compiled_canary/

--env accepts prod or canary today. The canary case requires a teams.canary.py in the repo root and per-entity opt-in via environments=['prod', 'canary'] on the GroupBy/Join/StagingQuery. Entities default to prod-only — they're never scheduled under --env canary unless explicitly opted in.

See Multi-Environment Compile & Deploy for the full guide: authoring teams.canary.py, the environments= behavior matrix, and the CI workflow.

Monitoring Workflows

zipline hub workflows list lists workflows of any status, newest first. Use --status (comma-separated or repeated, e.g. --status running,waiting), --user (full email, or zipline for scheduled runs), --mode, --branch, --conf (exact conf name) and --since (e.g. --status failed --since 1d) to narrow the list, and --sort oldest to reverse the order.

zipline hub workflows status shows one or more workflows, and --wait polls until they finish:

zipline hub workflows status <workflowId> [<workflowId> ...] --wait --timeout 3600

With --wait, the command exits non-zero unless every workflow succeeded, so it can gate a script or CI job. Stopping the wait does not cancel the workflows; zipline hub workflows cancel <workflowId> does.

zipline hub workflows steps list <workflowId> [--status failed,running] lists the latest attempt of each step a workflow runs (all of them unless --status narrows it, comma-separated or repeated), with the job of every step that started, and zipline hub workflows steps status <runId> shows one step run's full job details. Text output redacts auth tokens in job URLs; --open opens the job's Spark UI, console or Flink UI in a browser, and --format json keeps the full URLs. workflows steps list reads the full Workflow Status API response, which can be hundreds of MB for large workflows, then makes one small job lookup per started step, up to 50. It also names terminal nodes, which set the workflow's status, that have no step run in this workflow; --format json lists those nodes as terminalNodesWithoutSteps.

zipline hub workflows nodes list <workflowId> lists a workflow's nodes, upstream first, with step counts that show where the latest attempt of each step ran: THIS WORKFLOW counts this workflow's own steps by status ("already exists" means the data was already there, so no job ran), REUSED the steps another workflow ran, whose output this workflow uses without copying it, WAITING ELSEWHERE the steps this workflow is waiting on in another workflow, waiting or running there, and SKIPPED the placeholders for work not run by this workflow. For streaming nodes, another workflow may own the stream. Terminal nodes, which set the workflow's status, are marked (terminal). It reads the same full status response as workflows steps list but makes no job lookups. --format json gives one object per node with nodeName, terminal, thisWorkflow (a status to count map) and the reused, waitingElsewhere and skipped counts, plus terminalNodesWithoutSteps.

zipline hub backfill and zipline hub run-adhoc also take --wait and --timeout, to submit a workflow and wait for it in one step. For a streaming conf, run-adhoc --wait returns once the streaming job is deployed and running.

Cancelling Streaming Jobs

streaming cancel

Cancels running streaming jobs. Pass continuous node names (<conf_name>__streaming), or --workflow with a deploy workflow ID to cancel every continuous node in that workflow's plan. The command lists the nodes and asks for confirmation; pass --yes to skip the prompt.

zipline hub streaming cancel my_team.user_features.v1__1__streaming
zipline hub streaming cancel --workflow <WORKFLOW_ID>

The command sends the cancel request and returns; the job stops asynchronously, so don't re-run it while it shuts down. The hub rejects nodes whose conf still has an active deploy schedule, so use this for versions that are no longer scheduled, or cancel the schedule first with zipline hub schedules cancel. To retire a streaming job, run zipline hub schedules cancel and then zipline hub streaming cancel. The command exits non-zero if any node was not cancelled. Only streaming jobs the hub manages are cancelled; jobs submitted directly to an external cluster manager must be cancelled there.

To see which nodes would be sent for cancellation without cancelling anything, add --dry-run (with --workflow it still reads the workflow from the hub; it doesn't check whether the hub would reject a node):

zipline hub streaming cancel --workflow <WORKFLOW_ID> --dry-run

Scheduled Jobs by Entity Type

GroupBy

GroupBys will get the following jobs:

  1. (if online=True) Batch upload — updates the online KV store with feature values for serving
  2. (if online=True and a streaming topic is configured) Streaming updates to the online KV store for serving
  3. (if offline_schedule is set) Batch snapshots that write partitions into the output table

Join

Joins will get the following jobs:

  1. (if online=True) A metadata upload job that informs the fetcher of which features are part of this join (beyond that, the actual feature computation is scheduled by the GroupBys used within the Join; these can also be tracked on the Joins page in the Zipline.AI Hub UI)
  2. (if offline_schedule is set) Batch jobs that frontfill data into the most recent partitions of the output table

StagingQuery

StagingQuerys will get a batch job that writes data into the most recent partition of the output table.

Disabling Schedules

To prevent a particular schedule from being created, set the relevant schedule field to "@never". This works for both online_schedule and offline_schedule:

GroupBy(
    ...
    online=True,
    online_schedule="@never",   # disables the online batch upload schedule
    offline_schedule="@never",  # disables the offline snapshot schedule
)

This is useful when you want fine-grained control — for example, disabling the GroupBy's own batch schedule while still allowing a downstream Join to drive execution.

Inspecting and Cleaning Up Schedules

schedules list

Lists the schedules registered on the hub. Schedules are keyed by conf name and branch, so by default this shows every branch, including schedules deployed from branches that have since been deleted.

zipline hub schedules list                         # all branches
zipline hub schedules list --branch my-branch      # one branch
zipline hub schedules list --mode deploy           # online schedules only
zipline hub schedules list --conf team.my_join__1  # one conf, by exact name

schedules cancel

Cancels a conf's schedules for one branch without a config change. It is meant for schedules that schedule-all can no longer reach, such as those left behind by a deleted or abandoned branch. Anywhere schedule-all still runs, change the config instead: the next schedule-all run will recreate a schedule whose conf still exists. Like pruning, cancelling the schedule alone does not stop a running streaming job. To retire one, cancel the schedule first (the hub won't cancel a streaming job while its deploy schedule is active), then cancel the job with zipline hub streaming cancel. It lists the schedules it will cancel and asks for confirmation first; --yes (-y) skips the prompt.

zipline hub schedules cancel team.my_group_by__1 --branch my-old-branch
Edit this page