missing datacenter resource

This commit is contained in:
mr 2024-10-07 14:07:05 +02:00
parent a39f539426
commit e69d5b3351

View File

@ -192,9 +192,6 @@ 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 * 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) { 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")
}
nats := tools.NewNATSCaller() // create a new nats caller because executions are sent to the nats for daemons nats := tools.NewNATSCaller() // create a new nats caller because executions are sent to the nats for daemons
mongo.MONGOService.DeleteMultiple(map[string]interface{}{ mongo.MONGOService.DeleteMultiple(map[string]interface{}{
"state": 1, // only delete the scheduled executions only scheduled if executions are in progress or ended, they should not be deleted for registration "state": 1, // only delete the scheduled executions only scheduled if executions are in progress or ended, they should not be deleted for registration