Use function arity to detect whether tasks will handle the scheduling or not