Cron started to early ... #5669

Closed
opened 2025-11-02 06:32:31 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @somera on GitHub (Jul 1, 2020).

  • Gitea version (or commit ref): 1.12.1
  • Git version: 2.20.1
  • Operating system: Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

In #12083 I got the answer, that I can use the cron configuration in Gitea.

This is set in the config to

; Update mirrors
[cron.update_mirrors]
SCHEDULE = 0 3 * * *

image

But as you can see, the you should start to early.

And after I canceld the running job gitea shows:

image

Screenshots

Originally created by @somera on GitHub (Jul 1, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.12.1 - Git version: 2.20.1 - Operating system: Linux - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant ## Description In #12083 I got the answer, that I can use the cron configuration in Gitea. This is set in the config to ``` ; Update mirrors [cron.update_mirrors] SCHEDULE = 0 3 * * * ``` ![image](https://user-images.githubusercontent.com/8334250/86262925-c9160580-bbc0-11ea-80e1-1b696f409f9b.png) But as you can see, the you should start to early. And after I canceld the running job gitea shows: ![image](https://user-images.githubusercontent.com/8334250/86263273-4772a780-bbc1-11ea-9fc4-90fe964dc843.png) ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
Author
Owner

@somera commented on GitHub (Jul 12, 2020):

I'm closing it.

Got in #12083 the info how cron should be configured. Test will follow.

@somera commented on GitHub (Jul 12, 2020): I'm closing it. Got in #12083 the info how cron should be configured. Test will follow.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5669