(service_name, job_name)
Set info about current script.
Set info about current script.
Set info about current script .
def set_service_name(service_name, job_name):
    """Set info about current script."""
    global _service_name, _job_name

    _service_name = service_name
    _job_name = job_name

    _log_extra['job_name'] = _job_name
    _log_extra['service_name'] = _service_name
def set_service_name ( service_name , job_name ) : global _service_name , _job_name _service_name = service_name _job_name = job_name _log_extra [ 'job_name' ] = _job_name _log_extra [ 'service_name' ] = _service_name