import get_client within task