mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-05-21 07:01:20 -05:00
[GH-ISSUE #89] Feature request: allow configuring starting hour for automation tasks #660
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MakiseKurisu on GitHub (Sep 5, 2025).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/89
For tasks that are repeated at least daily, it will be beneficial to set the start time at off hour, to better utilize network bandwidth during low activity time.
@Tailscale-VPS commented on GitHub (Sep 5, 2025):
@MakiseKurisu if your are talking about the mirroring , theres already options to set schedule time (in cron also)
Also if u are using docker for deployment. Then wait for the closure of https://github.com/RayLabsHQ/gitea-mirror/issues/72
@arunavo4 commented on GitHub (Sep 7, 2025):
@MakiseKurisu great point about scheduling during off-peak hours for bandwidth optimization!
Actually, you can already do this using cron expressions in
SCHEDULE_INTERVAL. I realize this might not be super obvious from the docs, so here's how:So if you want to mirror during low-traffic hours, just pick your preferred time. The format is standard cron:
minute hour day month weekday.For now though, the cron approach gives you full control - you can even do stuff like "every 6 hours starting at 2 AM" with
"0 2,8,14,20 * * *".