mirror of
https://github.com/harness/drone.git
synced 2025-05-15 16:40:06 +08:00
use background ctx to cleanup after failed import (#798)
This commit is contained in:
parent
5f2c81b2af
commit
70fbaaed16
@ -292,7 +292,7 @@ func (r *Repository) Handle(ctx context.Context, data string, _ job.ProgressRepo
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("failed repository import - cleanup git repository")
|
||||
|
||||
if errDel := r.deleteGitRepository(ctx, &systemPrincipal, repo); errDel != nil {
|
||||
if errDel := r.deleteGitRepository(context.Background(), &systemPrincipal, repo); errDel != nil {
|
||||
log.Warn().Err(errDel).
|
||||
Msg("failed to delete git repository after failed import")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user