Skip to content

Commit 565c13a

Browse files
committed
fix comment
1 parent f06c1a3 commit 565c13a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/pull/pull.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,8 @@ type TestPullRequestOptions struct {
374374
func AddTestPullRequestTask(opts TestPullRequestOptions) {
375375
log.Trace("AddTestPullRequestTask [head_repo_id: %d, head_branch: %s]: finding pull requests", opts.RepoID, opts.Branch)
376376
graceful.GetManager().RunWithShutdownContext(func(ctx context.Context) {
377+
// this function does a lot of operations to various models, if the process gets killed in the middle,
378+
// there is no way to recover at the moment. The best workaround is to let end user push again.
377379
repo, err := repo_model.GetRepositoryByID(ctx, opts.RepoID)
378380
if err != nil {
379381
log.Error("GetRepositoryByID: %v", err)

0 commit comments

Comments
 (0)