summaryrefslogtreecommitdiffstats
path: root/services/task
diff options
context:
space:
mode:
Diffstat (limited to 'services/task')
-rw-r--r--services/task/migrate.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/services/task/migrate.go b/services/task/migrate.go
index 46ea80b002..8e9f6115bc 100644
--- a/services/task/migrate.go
+++ b/services/task/migrate.go
@@ -5,7 +5,6 @@
package task
import (
- "context"
"errors"
"fmt"
"strings"
@@ -99,11 +98,9 @@ func runMigrateTask(t *models.Task) (err error) {
opts.MigrateToRepoID = t.RepoID
- ctx, cancel := context.WithCancel(graceful.GetManager().ShutdownContext())
- defer cancel()
pm := process.GetManager()
- pid := pm.Add(fmt.Sprintf("MigrateTask: %s/%s", t.Owner.Name, opts.RepoName), cancel)
- defer pm.Remove(pid)
+ ctx, _, finished := pm.AddContext(graceful.GetManager().ShutdownContext(), fmt.Sprintf("MigrateTask: %s/%s", t.Owner.Name, opts.RepoName))
+ defer finished()
t.StartTime = timeutil.TimeStampNow()
t.Status = structs.TaskStatusRunning
rt-bundle'>automated/noid/stable29-update-ca-cert-bundle Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/lib/l10n/or_IN.json
blob: 4286553dd0c9796254df30f6f9eb78db75c30de4 (plain)
1
2
3
4
5
6
7
{ "translations": {
    "_%n minute ago_::_%n minutes ago_" : ["",""],
    "_%n hour ago_::_%n hours ago_" : ["",""],
    "_%n day go_::_%n days ago_" : ["",""],
    "_%n month ago_::_%n months ago_" : ["",""]
},"pluralForm" :"nplurals=2; plural=(n != 1);"
}