@@ -889,21 +889,40 @@ ENABLED = true
889
889
; Run cron tasks when Gitea starts.
890
890
RUN_AT_START = false
891
891
892
+ ; Basic cron tasks
893
+
892
894
; Update mirrors
893
895
[cron.update_mirrors]
894
896
SCHEDULE = @every 10m
897
+ ; Enable running Update mirrors task periodically.
898
+ ENABLED = true
899
+ ; Run Update mirrors task when Gitea starts.
900
+ RUN_AT_START = false
901
+ ; Notice if not success
902
+ NO_SUCCESS_NOTICE = true
895
903
896
904
; Repository health check
897
905
[cron.repo_health_check]
898
906
SCHEDULE = @every 24h
907
+ ; Enable running Repository health check task periodically.
908
+ ENABLED = true
909
+ ; Run Repository health check task when Gitea starts.
910
+ RUN_AT_START = false
911
+ ; Notice if not success
912
+ NO_SUCCESS_NOTICE = true
899
913
TIMEOUT = 60s
900
914
; Arguments for command 'git fsck', e.g. "--unreachable --tags"
901
915
; see more on http://git-scm.com/docs/git-fsck
902
916
ARGS =
903
917
904
918
; Check repository statistics
905
919
[cron.check_repo_stats]
920
+ ; Enable running check repository statistics task periodically.
921
+ ENABLED = true
922
+ ; Run check repository statistics task when Gitea starts.
906
923
RUN_AT_START = true
924
+ ; Notice if not success
925
+ NO_SUCCESS_NOTICE = true
907
926
SCHEDULE = @every 24h
908
927
909
928
; Clean up old repository archives
@@ -912,26 +931,112 @@ SCHEDULE = @every 24h
912
931
ENABLED = true
913
932
; Whether to always run at least once at start up time (if ENABLED)
914
933
RUN_AT_START = true
934
+ ; Notice if not success
935
+ NO_SUCCESS_NOTICE = true
915
936
; Time interval for job to run
916
937
SCHEDULE = @every 24h
917
938
; Archives created more than OLDER_THAN ago are subject to deletion
918
939
OLDER_THAN = 24h
919
940
920
941
; Synchronize external user data (only LDAP user synchronization is supported)
921
942
[cron.sync_external_users]
943
+ ENABLED = true
922
944
; Synchronize external user data when starting server (default false)
923
945
RUN_AT_START = false
946
+ ; Notice if not success
947
+ NO_SUCCESS_NOTICE = true
924
948
; Interval as a duration between each synchronization (default every 24h)
925
949
SCHEDULE = @every 24h
926
950
; Create new users, update existing user data and disable users that are not in external source anymore (default)
927
951
; or only create new users if UPDATE_EXISTING is set to false
928
952
UPDATE_EXISTING = true
929
953
930
- ; Update migrated repositories' issues and comments' posterid, it will always attempt synchronization when the instance starts.
954
+ ; Clean-up deleted branches
955
+ [cron.deleted_branches_cleanup]
956
+ ENABLED = true
957
+ ; Clean-up deleted branches when starting server (default true)
958
+ RUN_AT_START = true
959
+ ; Notice if not success
960
+ NO_SUCCESS_NOTICE = true
961
+ ; Interval as a duration between each synchronization (default every 24h)
962
+ SCHEDULE = @every 24h
963
+ ; deleted branches than OLDER_THAN ago are subject to deletion
964
+ OLDER_THAN = 24h
965
+
931
966
[cron.update_migration_poster_id]
967
+ ; Update migrated repositories' issues and comments' posterid, it will always attempt synchronization when the instance starts.
968
+ ENABLED = true
969
+ ; Update migrated repositories' issues and comments' posterid when starting server (default true)
970
+ RUN_AT_START = true
971
+ ; Notice if not success
972
+ NO_SUCCESS_NOTICE = true
932
973
; Interval as a duration between each synchronization. (default every 24h)
933
974
SCHEDULE = @every 24h
934
975
976
+ ; Extened cron task
977
+ ; they was not enabled as default
978
+
979
+ ; Delete all unactivated accounts
980
+ [cron.delete_inactive_accounts]
981
+ ENABLED = false
982
+ RUN_AT_START = false
983
+ NO_SUCCESS_NOTICE = true
984
+ SCHEDULE = @annually
985
+ OLDER_THAN = 168h
986
+
987
+ ; Delete all repository archives
988
+ [cron.delete_repo_archives]
989
+ ENABLED = false
990
+ RUN_AT_START = false
991
+ NO_SUCCESS_NOTICE = true
992
+ SCHEDULE = @annually
993
+
994
+ ; Garbage collect all repositories
995
+ [cron.git_gc_repos]
996
+ ENABLED = false
997
+ RUN_AT_START = false
998
+ NO_SUCCESS_NOTICE = true
999
+ SCHEDULE = @every 72h
1000
+ TIMEOUT = 60s
1001
+ ; Arguments for command 'git gc'
1002
+ ; The default value is same with [git] -> GC_ARGS
1003
+ ARGS =
1004
+
1005
+ ; Update the '.ssh/authorized_keys' file with Gitea SSH keys
1006
+ [cron.resync_all_sshkeys]
1007
+ ENABLED = false
1008
+ RUN_AT_START = false
1009
+ NO_SUCCESS_NOTICE = true
1010
+ SCHEDULE = @every 72h
1011
+
1012
+ ; Resynchronize pre-receive, update and post-receive hooks of all repositories.
1013
+ [cron.resync_all_hooks]
1014
+ ENABLED = false
1015
+ RUN_AT_START = false
1016
+ NO_SUCCESS_NOTICE = true
1017
+ SCHEDULE = @every 72h
1018
+
1019
+ ; Reinitialize all missing Git repositories for which records exist
1020
+ [cron.reinit_missing_repos]
1021
+ ENABLED = false
1022
+ RUN_AT_START = false
1023
+ NO_SUCCESS_NOTICE = true
1024
+ SCHEDULE = @every 72h
1025
+
1026
+ ; Delete all repositories missing their Git files
1027
+ [cron.delete_missing_repos]
1028
+ ENABLED = false
1029
+ RUN_AT_START = false
1030
+ NO_SUCCESS_NOTICE = true
1031
+ SCHEDULE = @every 72h
1032
+
1033
+ ; Delete generated repository avatars
1034
+ [cron.delete_generated_repository_avatars]
1035
+ ENABLED = false
1036
+ RUN_AT_START = false
1037
+ NO_SUCCESS_NOTICE = true
1038
+ SCHEDULE = @every 72h
1039
+
935
1040
[git]
936
1041
; The path of git executable. If empty, Gitea searches through the PATH environment.
937
1042
PATH =
0 commit comments