Autoupdateing mirrors after Gitea start #5153

Closed
opened 2025-11-02 06:16:09 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @Monter on GitHub (Mar 30, 2020).

  • Gitea version (or commit ref): 1.12.0+dev-60-g3f0cb8b33 binary from here
  • Git version: 2.11.0
  • Operating system: Debian x64
  • Database (use [x]):
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Not relevant

Description

I have many projects (150+) in the database, most of which are migrations with the mirror option. Every time Gitea is updated, there is a problem: Gitea tries to refresh them immediately after startup, which kills the server CPU. Where can this option be turned off so that mirrors are refreshed only according to the schedule (set for me once every 24h)?

Originally created by @Monter on GitHub (Mar 30, 2020). - Gitea version (or commit ref): 1.12.0+dev-60-g3f0cb8b33 binary from here - Git version: 2.11.0 - Operating system: Debian x64 - Database (use `[x]`): - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Not relevant ## Description I have many projects (150+) in the database, most of which are migrations with the mirror option. Every time Gitea is updated, there is a problem: Gitea tries to refresh them immediately after startup, which kills the server CPU. Where can this option be turned off so that mirrors are refreshed only according to the schedule (set for me once every 24h)?
GiteaMirror added the type/question label 2025-11-02 06:16:09 -06:00
Author
Owner

@techknowlogick commented on GitHub (Mar 30, 2020):

See https://docs.gitea.io/en-us/config-cheat-sheet/#cron-cron where you can disable cron tasks from running at startup.

@techknowlogick commented on GitHub (Mar 30, 2020): See https://docs.gitea.io/en-us/config-cheat-sheet/#cron-cron where you can disable cron tasks from running at startup.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5153