diff options
author | Jimmy Praet <jimmy.praet@telenet.be> | 2021-07-15 17:55:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 11:55:48 -0400 |
commit | 8df3d6575a3e07d38b264e5c1581e48aa4a02c88 (patch) | |
tree | fe0bee5ff7f4b9513eac8abbd534a5e15fd43e64 /modules | |
parent | 195c9999a1fce5a0f6e796be9a831761400c3003 (diff) | |
download | gitea-8df3d6575a3e07d38b264e5c1581e48aa4a02c88.tar.gz gitea-8df3d6575a3e07d38b264e5c1581e48aa4a02c88.zip |
Change @every 24h default schedules to @midnight (#16431)v1.16.0-dev
Diffstat (limited to 'modules')
-rw-r--r-- | modules/cron/tasks_basic.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/cron/tasks_basic.go b/modules/cron/tasks_basic.go index 391cda0f89..d4ac4f4436 100644 --- a/modules/cron/tasks_basic.go +++ b/modules/cron/tasks_basic.go @@ -36,7 +36,7 @@ func registerRepoHealthCheck() { BaseConfig: BaseConfig{ Enabled: true, RunAtStart: false, - Schedule: "@every 24h", + Schedule: "@midnight", }, Timeout: 60 * time.Second, Args: []string{}, @@ -50,7 +50,7 @@ func registerCheckRepoStats() { RegisterTaskFatal("check_repo_stats", &BaseConfig{ Enabled: true, RunAtStart: true, - Schedule: "@every 24h", + Schedule: "@midnight", }, func(ctx context.Context, _ *models.User, _ Config) error { return models.CheckRepoStats(ctx) }) @@ -61,7 +61,7 @@ func registerArchiveCleanup() { BaseConfig: BaseConfig{ Enabled: true, RunAtStart: true, - Schedule: "@every 24h", + Schedule: "@midnight", }, OlderThan: 24 * time.Hour, }, func(ctx context.Context, _ *models.User, config Config) error { @@ -75,7 +75,7 @@ func registerSyncExternalUsers() { BaseConfig: BaseConfig{ Enabled: true, RunAtStart: false, - Schedule: "@every 24h", + Schedule: "@midnight", }, UpdateExisting: true, }, func(ctx context.Context, _ *models.User, config Config) error { @@ -89,7 +89,7 @@ func registerDeletedBranchesCleanup() { BaseConfig: BaseConfig{ Enabled: true, RunAtStart: true, - Schedule: "@every 24h", + Schedule: "@midnight", }, OlderThan: 24 * time.Hour, }, func(ctx context.Context, _ *models.User, config Config) error { @@ -103,7 +103,7 @@ func registerUpdateMigrationPosterID() { RegisterTaskFatal("update_migration_poster_id", &BaseConfig{ Enabled: true, RunAtStart: true, - Schedule: "@every 24h", + Schedule: "@midnight", }, func(ctx context.Context, _ *models.User, _ Config) error { return migrations.UpdateMigrationPosterID(ctx) }) @@ -114,7 +114,7 @@ func registerCleanupHookTaskTable() { BaseConfig: BaseConfig{ Enabled: true, RunAtStart: false, - Schedule: "@every 24h", + Schedule: "@midnight", }, CleanupType: "OlderThan", OlderThan: 168 * time.Hour, |