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
* Refactor Cron and merge dashboard tasks
* Merge Cron and Dashboard tasks
* Make every cron task report a system notice on completion
* Refactor the creation of these tasks
* Ensure that execution counts of tasks is correct
* Allow cron tasks to be started from the cron page
* golangci-lint fixes
* Enforce that only one task with the same name can be registered
Signed-off-by: Andrew Thornton <[email protected]>
* fix name check
Signed-off-by: Andrew Thornton <[email protected]>
* as per @guillep2k
* as per @lafriks
Signed-off-by: Andrew Thornton <[email protected]>
* Add git.CommandContext variants
Signed-off-by: Andrew Thornton <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
log.Warn("CheckRepoStats: Aborting due to shutdown")
2010
-
return
2019
+
log.Warn("CheckRepoStats: Cancelled during %s for repo ID %d", desc, id)
2020
+
returnErrCancelledf("during %s for repo ID %d", desc, id)
2011
2021
default:
2012
2022
}
2013
-
id:=com.StrTo(result["id"]).MustInt64()
2014
2023
log.Trace("Updating %s: %d", desc, id)
2015
2024
_, err=x.Exec("UPDATE `repository` SET num_closed_issues=(SELECT COUNT(*) FROM `issue` WHERE repo_id=? AND is_closed=? AND is_pull=?) WHERE id=?", id, true, false, id)
log.Warn("CheckRepoStats: Aborting due to shutdown")
2033
-
return
2042
+
log.Warn("CheckRepoStats: Cancelled")
2043
+
returnErrCancelledf("during %s for repo ID %d", desc, id)
2034
2044
default:
2035
2045
}
2036
-
id:=com.StrTo(result["id"]).MustInt64()
2037
2046
log.Trace("Updating %s: %d", desc, id)
2038
2047
_, err=x.Exec("UPDATE `repository` SET num_closed_pulls=(SELECT COUNT(*) FROM `issue` WHERE repo_id=? AND is_closed=? AND is_pull=?) WHERE id=?", id, true, true, id)
0 commit comments