If logging of staging tasks runs async, then task is logged at the end of request, but outside of the contexts that where actual when the API was called.
The context of user CurrentUser and SynchronizationActionContext is lost.
This method is run in the context of CurrentUser and SynchronizationActionContext when instance of worker was created.