Commit Graph

11 Commits (30f7ddb833adfe276a93c1a79e243b8d33bdd41e)

Author SHA1 Message Date
zeripath e7923c4bc0 Fix missing unlock in uniquequeue ()
zeripath e3c3b33ea7
Graceful: Xorm, RepoIndexer, Cron and Others ()
* Change graceful to use a singleton obtained through GetManager instead of a global.
* Graceful: Make TestPullRequests shutdownable
* Graceful: Make the cron tasks graceful
* Graceful: AddTestPullRequest run in graceful ctx
* Graceful: SyncMirrors shutdown
* Graceful: SetDefaultContext for Xorm to be HammerContext
* Avoid starting graceful for migrate commands and checkout
* Graceful: DeliverHooks now can be shutdown
* Fix multiple syncing errors in modules/sync/UniqueQueue &  Make UniqueQueue closable
* Begin the process of making the repo indexer shutdown gracefully
Tamal Saha 171b359877 Use gitea forked macaron ()
Signed-off-by: Tamal Saha <tamal@appscode.com>
Ethan Koenig bfb44f8854 Fix status table race condition ()
Ethan Koenig 021904e4e6 Fix typos in models/ and modules/ ()
Andrew a36a8f4d72 Add missing copyright header to status table test ()
Andrew 1da7dd3da9 Improve status table implementation ()
* Remove superfluous defer calls

* Improve status table implementation as well

This would probably only help with large, high-traffic installs
Unknwon c1ecb6c60a modules/sync: add UniqueQueue
Unknwon 43297148b2 modules/sync: rename SingleInstancePool to ExclusivePool
Unknwon ec332cf903 Minor naming improvement
Unknwon 660e7a178a modules/sync: move sync objects to independent module