def _add_job(self, job): with self._jobs_condition: self._jobs[job.id] = job with self._clients_condition: clients = self._clients.copy() job_info = job.get_info() _Client.job_added(clients, job_info)
def print(self, machine_name, input_file, extruder_name, gcode_processor_name, has_start_end, material_name, slicer_name, slicer_settings): slicer_settings = conveyor.domain.SlicerConfiguration.fromdict( slicer_settings) job = self._server.print(machine_name, input_file, extruder_name, gcode_processor_name, has_start_end, material_name, slicer_name, slicer_settings) dct = job.get_info().to_dict() return dct
def slice(self, driver_name, profile_name, input_file, output_file, add_start_end, extruder_name, gcode_processor_name, material_name, slicer_name, slicer_settings): slicer_settings = conveyor.domain.SlicerConfiguration.fromdict( slicer_settings) job = self._server.slice(driver_name, profile_name, input_file, output_file, add_start_end, extruder_name, gcode_processor_name, material_name, slicer_name, slicer_settings) dct = job.get_info().to_dict() return dct
def slice( self, driver_name, profile_name, input_file, output_file, add_start_end, extruder_name, gcode_processor_name, material_name, slicer_name, slicer_settings): slicer_settings = conveyor.domain.SlicerConfiguration.fromdict( slicer_settings) job = self._server.slice( driver_name, profile_name, input_file, output_file, add_start_end, extruder_name, gcode_processor_name, material_name, slicer_name, slicer_settings) dct = job.get_info().to_dict() return dct
def print( self, machine_name, input_file, extruder_name, gcode_processor_name, has_start_end, material_name, slicer_name, slicer_settings): slicer_settings = conveyor.domain.SlicerConfiguration.fromdict( slicer_settings) job = self._server.print( machine_name, input_file, extruder_name, gcode_processor_name, has_start_end, material_name, slicer_name, slicer_settings) dct = job.get_info().to_dict() return dct
def _job_changed(self, job): job_info = job.get_info() with self._clients_condition: clients = self._clients.copy() _Client.job_changed(clients, job_info)