Exemple #1
0
def StopJob(transcoder_ip, job_guid):
    carbon = CarbonSocketLayer(transcoder_ip)
    Job = CarbonJob(carbon, job_guid)
    Job.Stop()
Exemple #2
0
def RemoveJob(transcoder_ip, job_guid):
    carbon = CarbonSocketLayer(transcoder_ip)
    Job = CarbonJob(carbon, job_guid)
    return Job.Remove()
Exemple #3
0
def GetJobSpeed(transcoder_ip, job_guid):
    carbon = CarbonSocketLayer(transcoder_ip)
    Job = CarbonJob(carbon, job_guid)
    return Job.GetSpeed()
Exemple #4
0
def GetJobError(transcoder_ip, job_guid):
    carbon = CarbonSocketLayer(transcoder_ip)
    Job = CarbonJob(carbon, job_guid)
    return Job.GetError()
Exemple #5
0
def GetJobState(transcoder_ip, job_guid):
    carbon = CarbonSocketLayer(transcoder_ip)
    Job = CarbonJob(carbon, job_guid)
    return Job.GetState(), str(Job.GetProgress())