{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "prefecthq-prefect--schedule-a-pipeline-with-a-prefect-deployment",
 "repo": "PrefectHQ/prefect",
 "repo_url": "https://github.com/PrefectHQ/prefect",
 "repo_slug": "prefecthq-prefect",
 "title": "Schedule a pipeline to run on a cron",
 "page_title": "How to schedule a pipeline to run on a cron with Prefect",
 "summary": "Serve a Prefect flow as a deployment with a cron schedule and parameters.",
 "who": "A data engineer who needs a pipeline to run every hour without managing crontab.",
 "problem": "Cron jobs are hard to monitor, rerun or parameterise.",
 "outcome": "A long-running process that executes the flow on schedule and can also be triggered from the UI or CLI.",
 "steps": [
  "Install with `pip install -U prefect`",
  "Replace the script's entry point with flow.serve, giving it a name, a cron expression and parameters, as in the README",
  "Run the script; it stays up and looks for scheduled runs",
  "Trigger extra runs manually from the UI or CLI when you need them",
  "Use event triggers from the automations docs to run deployments in response to events"
 ],
 "agent_prompt": "With PrefectHQ/prefect, make <flow> a deployment with .serve(name=\"<name>\", cron=\"<schedule>\", parameters=<params>), run it, and show me how to trigger an extra run from the CLI.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The serve process must keep running for scheduled runs to happen; production setups are covered in the deploy docs.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.11 or later",
  "pip or uv",
  "Optional: a Prefect Cloud account instead of a self-hosted server"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/prefecthq-prefect/schedule-a-pipeline-with-a-prefect-deployment/",
 "md": "https://dedupedai.com/use-cases/prefecthq-prefect/schedule-a-pipeline-with-a-prefect-deployment/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/prefecthq-prefect--schedule-a-pipeline-with-a-prefect-deployment.json",
 "api_version": "v1"
}
