-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cron.archive_cleanup in config cheat sheet #3215
Add cron.archive_cleanup in config cheat sheet #3215
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3215 +/- ##
=========================================
+ Coverage 34.88% 34.9% +0.01%
=========================================
Files 277 277
Lines 39990 39990
=========================================
+ Hits 13952 13958 +6
+ Misses 24023 24012 -11
- Partials 2015 2020 +5
Continue to review full report at Codecov.
|
### Cron - Cleanup old repository archives (`cron.archive_cleanup`) | ||
|
||
- `RUN_AT_START`: Enable this to run cron tasks at start time. | ||
- `SCHEDULE`: Cron syntax for scheduling update mirrors, e.g. `@every 1h`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be Cron syntax for scheduling repository archive cleanup...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, sorry. Fixed and squash-rebased against current master.
8a64481
to
4b1c0ee
Compare
LGTM |
LGTM |
@@ -493,7 +493,11 @@ SCHEDULE = @every 24h | |||
|
|||
; Clean up old repository archives | |||
[cron.archive_cleanup] | |||
; Whether to enable the job | |||
ENABLED = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this will change default case that would be default false before ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it was true by default already. Defaults are not taken from this file but are in code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enabled is true by default: https://github.com/go-gitea/gitea/blob/master/modules/setting/setting.go#L425-L435
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the mislead I was thinking of default bool in go but I forget that we define default in settings.
drone failure is about a tcp timeout, and I cannot restart it. will squash-rebase to master and force-push, fingers crossed |
Include defaults in cheat sheet, for that section
a05981f
to
224475f
Compare
Missing info taken from
https://github.com/go-gitea/gitea/blob/master/custom/conf/app.ini.sample#L497