Checks if there is any continuous job.
bool Returns TRUE if there is continuous job, FALSE otherwise.
public function hasContinuousJobs() {
$id = $this->entityTypeManager
->getStorage('tmgmt_job')
->getQuery()
->accessCheck(TRUE)
->condition('job_type', Job::TYPE_CONTINUOUS)
->range(0, 1)
->execute();
return !empty($id);
}