optimize TaskScheduler idempotency check a bit