- check if logic is enabled before executing in scheduler._task()