Skip to main content
floo cron lists, inspects, and runs scheduled jobs. Declare jobs under [cron.<name>] in floo.app.toml. Each deploy creates, updates, or removes jobs to match the config. See Cron jobs for the schema and workflow.

list

Every cron job declared on an app, with its enabled state, last status, and last run time.

Flags

JSON output

last_run_at and last_status are null until the first run completes. last_status is success, failed, or interrupted. The API writes it only after the run reaches a terminal state, so there is no “running” value.

show

One cron job by name.

Arguments

Flags

JSON output

Errors


run

Trigger a cron job now, for testing or a one-off catch-up run.

Arguments

Flags

What it does

  1. Resolves the app from --app or the nearest floo.app.toml.
  2. Calls the platform’s “trigger cron job” endpoint once, which dispatches a one-off job execution against the service’s container image.
  3. Prints the API’s response. The API queues the run and responds at once. triggered: true means the run was queued, not that it ran. A failed run is not returned as an error: check last_status and last_run_at with floo cron show <name>. Read the run’s output with floo logs query --cron <name> --env dev (or --env prod).
The API refuses to queue a run with CRON_OBSERVATION_CONFLICT (409) when the job cannot start, for example while its previous run has no recorded status yet. Check floo cron show before retrying. CRON_SERVICE_NOT_DEPLOYED (422) means the job’s service has no deployed image yet.

JSON output


What the CLI does NOT do

  • Add jobs. Edit floo.app.toml. The next deploy creates the job.
  • Remove jobs. Delete the [cron.<name>] section from floo.app.toml. The next deploy deletes the job.
  • Edit schedules or commands. Change them in floo.app.toml. The next deploy updates the job.