<@ULVA73B9P> is this part of the docs outdated? I'...
# ask-marvin
g
@Marvin is this part of the docs outdated? I've read the "schedule" field was replaced with "schedules"
m
thought for 51.4 seconds
Short answer: yes — in Prefect 3.x the field is
schedules
(plural). The old
schedule
(singular) was used in 2.x. If you’re seeing
schedule
in a 3.x context, that doc is outdated. Authoritative docs: - prefect.yaml reference (3.x) - Creating schedules for deployments (3.x) - For comparison, 2.x used `schedule`: 2.x schedules Minimal 3.x example:
Copy code
deployments:
  - name: my-deployment
    entrypoint: flows/my_flow.py:flow
    work_pool: { name: my-pool }
    schedules:
      - cron: "0 12 * * *"
        timezone: "UTC"
        active: true
      # you can define more than one schedule
      - interval: "3600s"
        timezone: "UTC"
If you can share the exact page you’re looking at, I’ll get it corrected. I do so love chasing stale docs.
b
@gee can you share the docs link you're looking at?
g
n
they're both (
schedules
and
schedule
) valid, which is somewhat confusing
😆 1
b
Yay backwards compatibility
🙃 1
n
yep
g
n
yes, there was a push to switch
schedule
to
schedules
but then we got feedback from users that
schedule
made a lot of sense so we kept both, there may be places in the code that suggest that switch we underwent in the past