Pass run and workflow IDs to task callback
Refactoring