replace cron with scheduler and worker process