diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-07-16 08:13:03 +0800 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-07-15 20:13:03 -0400 |
commit | d2958d9f4633ddbde2202952d665b3d562eb0415 (patch) | |
tree | 59f6d1c0ed6c886ba0caa6d96d5a175debf376b7 /models/branches.go | |
parent | 760c47389696e97131a3d13629a0a5a4576e5283 (diff) | |
download | gitea-d2958d9f4633ddbde2202952d665b3d562eb0415.tar.gz gitea-d2958d9f4633ddbde2202952d665b3d562eb0415.zip |
Move status table to cron package (#7370)
Diffstat (limited to 'models/branches.go')
-rw-r--r-- | models/branches.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/models/branches.go b/models/branches.go index fa4215d6a0..c09e72e988 100644 --- a/models/branches.go +++ b/models/branches.go @@ -458,11 +458,6 @@ func (deletedBranch *DeletedBranch) LoadUser() { // RemoveOldDeletedBranches removes old deleted branches func RemoveOldDeletedBranches() { - if !taskStatusTable.StartIfNotRunning(`deleted_branches_cleanup`) { - return - } - defer taskStatusTable.Stop(`deleted_branches_cleanup`) - log.Trace("Doing: DeletedBranchesCleanup") deleteBefore := time.Now().Add(-setting.Cron.DeletedBranchesCleanup.OlderThan) |