Mercurial > gemma
comparison pkg/imports/ubn.go @ 5034:59a99655f34d
Added feedback support for StageDone.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 20 Mar 2020 12:28:04 +0100 |
parents | a376351d2774 |
children | 6270951dda28 |
comparison
equal
deleted
inserted
replaced
5033:13d9820c1ea4 | 5034:59a99655f34d |
---|---|
53 // StageDone moves the imported bottleneck out of the staging area. | 53 // StageDone moves the imported bottleneck out of the staging area. |
54 func (ubnJobCreator) StageDone( | 54 func (ubnJobCreator) StageDone( |
55 ctx context.Context, | 55 ctx context.Context, |
56 tx *sql.Tx, | 56 tx *sql.Tx, |
57 id int64, | 57 id int64, |
58 feedback Feedback, | |
58 ) error { | 59 ) error { |
59 // Same as normal bottleneck import. | 60 // Same as normal bottleneck import. |
60 return bnJobCreator{}.StageDone(ctx, tx, id) | 61 return bnJobCreator{}.StageDone(ctx, tx, id, feedback) |
61 } | 62 } |
62 | 63 |
63 // CleanUp of a uploaded bottleneck import removes the temp dir. | 64 // CleanUp of a uploaded bottleneck import removes the temp dir. |
64 func (ubn *UploadedBottleneck) CleanUp() error { return os.RemoveAll(ubn.Dir) } | 65 func (ubn *UploadedBottleneck) CleanUp() error { return os.RemoveAll(ubn.Dir) } |
65 | 66 |