Added utilities for multitenant-aware background task execution