Mercurial > gemma
changeset 5104:cb736582e8fc queued-stage-done
Minimize diff to default.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 24 Mar 2020 17:41:30 +0100 |
parents | a11705203f3f |
children | 4e85cf143c4a |
files | pkg/imports/queue.go |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/imports/queue.go Tue Mar 24 17:32:58 2020 +0100 +++ b/pkg/imports/queue.go Tue Mar 24 17:41:30 2020 +0100 @@ -73,16 +73,16 @@ // JobCreator is used to bring a job to life as it is stored // in pure meta-data form to the database. JobCreator interface { + // Description is the long name of the import. + Description() string + // Create build the actual job. + Create() Job // Depends returns two lists of ressources locked by this type of import. // Imports are run concurrently if they have disjoint sets // of dependencies. // The first list are locked exclusively. // The second allows multiple read users but only one writing one. Depends() [2][]string - // Description is the long name of the import. - Description() string - // Create build the actual job. - Create() Job // StageDone is called if an import is positively reviewed // (state = accepted). This can be used to finalize the imported // data to move it e.g from the staging area.