refactor: improve task function operation handling on the worker side