-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Graceful: Xorm, RepoIndexer, Cron and Others #9282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
zeripath
merged 41 commits into
go-gitea:master
from
zeripath:graceful-more-things-graceful
Dec 15, 2019
Merged
Changes from 22 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
5b3fa6d
Graceful: use GetManager instead of global
zeripath 00ddf85
Graceful: Make repo indexer shutdown gracefully
zeripath b2dea35
Graceful: Make the cron tasks graceful
zeripath c0ea8ef
Graceful: Make TestPullRequests shutdownable
zeripath 7beda2d
Graceful: AddTestPullRequest run in graceful ctx
zeripath db022dd
Graceful: SetDefaultContext for Xorm to be HammerContext
zeripath 1aafb56
Avoid starting graceful for migrate commands and checkout
zeripath eae3144
Merge branch 'master' into graceful-more-things-graceful
zeripath 7589a49
Graceful: DeliverHooks now can be shutdown
zeripath 89154f5
Graceful: SyncMirrors shutdown
zeripath 9b5d465
Merge branch 'master' into graceful-more-things-graceful
zeripath d7d6c86
Remove unnecessary ctx check
zeripath 1a79b2f
Fix hammer syncing
zeripath 7ce742c
rename manager.run to manager.start
zeripath fa751ea
adjust ctx.Done check
zeripath 19f2ca7
Prevent deadlock in mirror.Update on shutdown
zeripath ef9db2d
Lint doesn't permit passing in ctx nil
zeripath 90bde75
Add FIXME note to indexer/code/bleve.go
zeripath 13a808d
Say CheckRepoStats: Aborting due to Shutdown instead
zeripath f1c85e0
Update modules/sync/unique_queue.go
zeripath aa2dabd
Merge branch 'graceful-more-things-graceful' of github.com:zeripath/g…
zeripath d55db9e
Make channels at start up rather than delayed
zeripath 398ab3b
Merge branch 'master' into graceful-more-things-graceful
zeripath c93f1a7
Make repo indexer shutdown safely
zeripath 4411cae
Update manager.go
zeripath 5c2b081
Merge branch 'master' into graceful-more-things-graceful
zeripath 9faf8da
Merge branch 'master' into graceful-more-things-graceful
lunny cb2ac9b
oops
zeripath 607f2c2
Better error reporting
zeripath a4a722f
fixup
zeripath a9269a5
Push TestPullRequests to the UniqueQueue and make UniqueQueue closable
zeripath 3b97005
Ensure webhook queue is also closed to prevent blockage on add here
zeripath c227a34
Remove unnecessary channel check
zeripath 0e38ea8
Double check that we are not trying to add id to the table again
zeripath 244b54a
Sort results of getunindexrepos by descending id
zeripath 2098dd2
Ensure repos only added once to queue
zeripath 1374ad2
Merge branch 'master' into graceful-more-things-graceful
zeripath d42cf0d
D'oh
zeripath be4388c
Skip duplicate exist check in addfunc
zeripath 3e79dae
Merge branch 'master' into graceful-more-things-graceful
lunny caeecd2
Merge branch 'master' into graceful-more-things-graceful
zeripath File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.