Handle one-off tasks (undefined interval) properly.