Define a schedule
This function counts files in a volume every day at 03:00 UTC. Save it asdaily_report.py:
Trigger it
Deploying the function registers its schedule:{"files": 0}. Upload files to
report-inputs and the next run counts them. Scheduled runs appear in the
dashboard and in uv run lazycloud task list --app daily_report.
Choose a schedule
All schedules use UTC.
Other aliases are
@daily, @midnight, @weekly, @monthly,
@yearly, and @annually. Intervals accept up to 59 minutes, 23 hours, or
31 days. Deploy rejects an invalid expression.
Schedule options
Scheduled runs use the function’s timeout and retry settings. A run that overlaps the previous one queues behind it unless the function hasconcurrency or an autoscaler that lets them run side by
side. Scheduled functions default to keep_warm=0, so the container stops as
soon as a run finishes. See Warm containers.
Change or stop the schedule
Editingcron and deploying again replaces the schedule. Removing cron and
redeploying keeps the function callable without automatic runs.
To stop it now:
uv run lazycloud deployment delete count-files removes it entirely. The
report-inputs volume and its files stay until you delete the volume.
