]> source.dussan.org Git - gitea.git/commit
Graceful: Cancel Process on monitor pages & HammerTime (#9213)
authorzeripath <art27@cantab.net>
Sat, 30 Nov 2019 14:40:22 +0000 (08:40 -0600)
committerLauris BH <lauris@nix.lv>
Sat, 30 Nov 2019 14:40:22 +0000 (16:40 +0200)
commit60c5339042a605076482320313e8f9498dd72af9
treebef1e4a0fb9565140fbf142f13d3b7e5f334031d
parent8f8c250ddbe8dfe785340cb45cbae71c4833acf3
Graceful: Cancel Process on monitor pages & HammerTime (#9213)

* Graceful: Create callbacks to with contexts

* Graceful: Say when Gitea is completely finished

* Graceful: Git and Process within HammerTime

Force all git commands to terminate at HammerTime
Force all process commands to terminate at HammerTime
Move almost all git processes to run as git Commands

* Graceful: Always Hammer after Shutdown

* ProcessManager: Add cancel functionality

* Fix tests

* Make sure that process.Manager.Kill() cancels

* Make threadsafe access to Processes and remove own unused Kill

* Remove cmd from the process manager as it is no longer used

* the default context is the correct context

* get rid of double till
21 files changed:
cmd/web.go
models/pull.go
models/repo.go
models/repo_generate.go
modules/git/blame.go
modules/git/command.go
modules/git/git.go
modules/graceful/context.go [new file with mode: 0644]
modules/graceful/manager.go
modules/graceful/manager_unix.go
modules/graceful/manager_windows.go
modules/process/manager.go
modules/process/manager_test.go
options/locale/locale_en-US.ini
routers/admin/admin.go
routers/repo/http.go
routers/routes/routes.go
services/gitdiff/gitdiff.go
services/mirror/mirror.go
services/release/release.go
templates/admin/monitor.tmpl