def delete( queue_name, task_id ): queue.delete(queue_name, task_id)
def gate_kmeans( filename, gatenames, number_clusters, x_axis, y_axis): queue.add_task('jobs', 'gate_kmeans;' + filename + ';' + gatenames + ';' + number_clusters + ';' + x_axis + ';' + y_axis)
def lease( queue_name, leaseTime ): return queue.lease(queue_name, leaseTime)
def gate_normal( filename, gatename, reverse, x_axis, y_axis, scale_factor): queue.add_task('jobs', 'gate_norm;' + filename + ';' + gatename + ';' + reverse + ';' + x_axis + ';' + y_axis + ';' + scale_factor)
def gate_quadrant( filename, xcoord, ycoord, quadrant1name, quadrant2name, quadrant3name, quadrant4name, x_axis, y_axis): queue.add_task('jobs', 'gate_quad;' + filename + ';' + xcoord + ';' + ycoord + ';' + quadrant1name + ';' + quadrant2name + ';' + quadrant3name + ';' + quadrant4name + ';' + x_axis + ';' + y_axis)
def gate_circle( filename, coords, gatename, reverse, x_axis, y_axis): queue.add_task('jobs', 'gate_cir;' + filename + ';' + coords + ';' + gatename + ';' + reverse + ';' + x_axis + ';' + y_axis)
def gate_boolean( filename, gatename, boolean_op, gate1_type, gate1_coords, gate1_reverse, gate2_type, gate2_coords, gate2_reverse, x_axis, y_axis, gate2_x_axis, gate2_y_axis): queue.add_task('jobs', 'gate_bool;' + filename + ';'+ gate1_coords + ';' + gatename + ';' + gate1_reverse + ';' + x_axis + ';' + y_axis + ';' + boolean_op + ';' + gate1_type + ';' + gate2_type + ';' + gate2_coords + ';' + gate2_reverse + ';' + gate2_x_axis + ';' + gate2_y_axis)
def kill(): queue.add_task('jobs', 'kill')
def visualise( filename ): queue.add_task('jobs', 'vis;' + filename)
def task_count(): return queue.task_count('jobs')
def contour_plot( filename, plot_name, x_axis, y_axis): queue.add_task('jobs', 'contour_plot;' + filename + ';' + x_axis + ';' + y_axis + ';' + plot_name)
def change_axis( filename, x_axis, y_axis, newname): queue.add_task('jobs', 'change_axis;' + filename + ';' + x_axis + ';' + y_axis + ';' + newname)