refactor: move workerId outside task type definition