comparison pkg/imports/agm.go @ 3219:4acbee65275d

Import queue: Split locked dependencies in exclusively and multiple uses.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 09 May 2019 12:49:53 +0200
parents c2b65a549c6f
children 56b297592c0a
comparison
equal deleted inserted replaced
3218:c2b65a549c6f 3219:4acbee65275d
53 return "approved gauge measurements" 53 return "approved gauge measurements"
54 } 54 }
55 55
56 func (agmJobCreator) Create() Job { return new(ApprovedGaugeMeasurements) } 56 func (agmJobCreator) Create() Job { return new(ApprovedGaugeMeasurements) }
57 57
58 func (agmJobCreator) Depends() []string { 58 func (agmJobCreator) Depends() [2][]string {
59 return []string{ 59 return [2][]string{
60 "gauges", 60 {"gauge_measurements"},
61 "gauge_measurements", 61 {"gauges"},
62 } 62 }
63 } 63 }
64 64
65 const ( 65 const (
66 // delete the old and keep the new measures. 66 // delete the old and keep the new measures.