Move status table to cron package (#7370)
This commit is contained in:
parent
760c473896
commit
d2958d9f46
24 changed files with 687 additions and 501 deletions
|
@ -315,11 +315,6 @@ func DeleteMirrorByRepoID(repoID int64) error {
|
|||
|
||||
// MirrorUpdate checks and updates mirror repositories.
|
||||
func MirrorUpdate() {
|
||||
if !taskStatusTable.StartIfNotRunning(mirrorUpdate) {
|
||||
return
|
||||
}
|
||||
defer taskStatusTable.Stop(mirrorUpdate)
|
||||
|
||||
log.Trace("Doing: MirrorUpdate")
|
||||
|
||||
if err := x.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue