missing datacenter resource
This commit is contained in:
@@ -192,6 +192,9 @@ func (wfa *workflowMongoAccessor) share(realData *Workflow, delete bool, caller
|
||||
* execution is a create or delete function for the workflow executions depending on the schedule of the workflow
|
||||
*/
|
||||
func (wfa *workflowMongoAccessor) execution(id string, realData *Workflow, delete bool) (int, error) {
|
||||
if ok, _ := realData.CheckBooking(wfa.Caller); !ok { // check the booking of the workflow
|
||||
return 409, errors.New("could not book the workflow")
|
||||
}
|
||||
var err error
|
||||
nats := tools.NewNATSCaller() // create a new nats caller because executions are sent to the nats for daemons
|
||||
if !realData.ScheduleActive { // if the schedule is not active, delete the executions
|
||||
|
Reference in New Issue
Block a user