Refactor: simplified worker interface. Scheduler changes task status and sets result.