code: function () {
                      //Check if any input was added dynamically
                      if (job.input.length > 0) {
                          job.is_complete = false;
                          return false;
                      }
  
                      //Wait for workers or instances that are still working
                      return worker_count > 0 ? areWorkersComplete() : job.instances <= 0;
                  }
docs: No input? We might be done..