You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change all cron tasks to make them no notice on success default. Instead if a user
wants notices on success they need to add NOTICE_ON_SUCCESS=true instead.
## ⚠️ BREAKING ⚠️
This changes the cron config so that notices on success are no longer set by default
and breaks NO_SUCCESS_NOTICE settings. Instead users who want notices on success
must set NOTICE_ON_SUCCESS=true instead.
Signed-off-by: Andrew Thornton <[email protected]>
* Update custom/conf/app.example.ini
Co-authored-by: Norwin <[email protected]>
Co-authored-by: Norwin <[email protected]>
-`SCHEDULE`: **@every 10m**: Cron syntax for scheduling update mirrors, e.g. `@every 3h`.
838
-
-`NO_SUCCESS_NOTICE`: **true**: The cron task for update mirrors success report is not very useful - as it just means that the mirrors have been queued. Therefore this is turned off by default.
839
838
-`PULL_LIMIT`: **50**: Limit the number of mirrors added to the queue to this number (negative values mean no limit, 0 will result in no mirrors being queued effectively disabling pull mirror updating).
840
839
-`PUSH_LIMIT`: **50**: Limit the number of mirrors added to the queue to this number (negative values mean no limit, 0 will result in no mirrors being queued effectively disabling push mirror updating).
841
840
@@ -875,43 +874,43 @@ Default templates for project boards:
875
874
-`RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
876
875
-`SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
877
876
-`TIMEOUT`: **60s**: Time duration syntax for garbage collection execution timeout.
878
-
-`NO_SUCCESS_NOTICE`: **false**: Set to true to switch off success notices.
877
+
-`NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
879
878
-`ARGS`: **\<empty\>**: Arguments for command `git gc`, e.g. `--aggressive --auto`. The default value is same with [git] -> GC_ARGS
880
879
881
880
#### Cron - Update the '.ssh/authorized_keys' file with Gitea SSH keys ('cron.resync_all_sshkeys')
882
881
-`ENABLED`: **false**: Enable service.
883
882
-`RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
884
-
-`NO_SUCCESS_NOTICE`: **false**: Set to true to switch off success notices.
883
+
-`NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
885
884
-`SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
886
885
887
886
#### Cron - Resynchronize pre-receive, update and post-receive hooks of all repositories ('cron.resync_all_hooks')
888
887
-`ENABLED`: **false**: Enable service.
889
888
-`RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
890
-
-`NO_SUCCESS_NOTICE`: **false**: Set to true to switch off success notices.
889
+
-`NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
891
890
-`SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
892
891
893
892
#### Cron - Reinitialize all missing Git repositories for which records exist ('cron.reinit_missing_repos')
894
893
-`ENABLED`: **false**: Enable service.
895
894
-`RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
896
-
-`NO_SUCCESS_NOTICE`: **false**: Set to true to switch off success notices.
895
+
-`NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
897
896
-`SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
898
897
899
898
#### Cron - Delete all repositories missing their Git files ('cron.delete_missing_repos')
900
899
-`ENABLED`: **false**: Enable service.
901
900
-`RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
902
-
-`NO_SUCCESS_NOTICE`: **false**: Set to true to switch off success notices.
901
+
-`NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
903
902
-`SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
-`RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
908
-
-`NO_SUCCESS_NOTICE`: **false**: Set to true to switch off success notices.
907
+
-`NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
909
908
-`SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
910
909
911
910
#### Cron - Delete all old actions from database ('cron.delete_old_actions')
912
911
-`ENABLED`: **false**: Enable service.
913
912
-`RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
914
-
-`NO_SUCCESS_NOTICE`: **false**: Set to true to switch off success notices.
913
+
-`NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
915
914
-`SCHEDULE`: **@every 168h**: Cron syntax to set how often to check.
916
915
-`OLDER_THAN`: **@every 8760h**: any action older than this expression will be deleted from database, suggest using `8760h` (1 year) because that's the max length of heatmap.
0 commit comments