McaiChannel

class mcai_worker_sdk.McaiChannel

Channel object that allows sending information (status, progression) about the job to the backend.

is_stopped()

Method for checking wether the current job is stopped.

Returns:

True if the current job is stopped, else False.

Return type:

bool

publish_job_progression(progression)

Method for publishing the progression of the job.

Parameters:

progression (int) – progression of the job in percent.

Returns:

True if the publication of the progression was successfull, else False.

Return type:

bool

set_job_status(status)

Method for setting the job status to return to the backend.

Parameters:

status (JobStatus) – status of the job.

Returns:

True if the status has been set properly, else False.

Return type:

bool