Queue REST API#

PUT /mxcube/api/v0.1/queue/start#

Start execution of the queue.

Returns:

Respons object, status code set to: 200: On success 409: Queue could not be started

PUT /mxcube/api/v0.1/queue/stop#

Stop execution of the queue.

Returns:

Response object status code set to: 200: On success 409: Queue could not be stopped

PUT /mxcube/api/v0.1/queue/abort#

Abort execution of the queue.

Returns:

Response object, status code set to: 200 On success 409 queue could not be aborted

PUT /mxcube/api/v0.1/queue/pause#

Pause the execution of the queue

Returns:

Response object, status code set to: 200: On success 409: Queue could not be paused

PUT /mxcube/api/v0.1/queue/unpause#

Unpause execution of the queue

Returns:

Response object, status code set to: 200: On success 409: Queue could not be unpause

GET /mxcube/api/v0.1/queue/clear#

Clear the queue.

Returns:

Response object, status code set to: 200: On success 409: Queue could not be started

PUT /mxcube/api/v0.1/queue/clear#

Clear the queue.

Returns:

Response object, status code set to: 200: On success 409: Queue could not be started

GET /mxcube/api/v0.1/queue/#

Get the queue :returns: Response object response Content-Type: application/json, json

object containing the queue on the format returned by queue_to_dict. The status code is set to:

200: On success 409: On error, could not retrieve queue

GET /mxcube/api/v0.1/queue/queue_state#

Get the queue.

Returns:

Response object response Content-Type: application/json, json object containing the queue state. The status code is set to:

200: On success 409: On error, could not retrieve queue

PUT /mxcube/api/v0.1/queue/(sid)/(tindex)/execute#

Execute the entry at position (sampleID, task index) in queue :param str sid: sampleID :param int tindex: task index of task within sample with id sampleID

Statuscode:

200, no error 409, queue entry could not be executed

PUT /mxcube/api/v0.1/queue/(sample_id)#
Update a sample info
parameter node_id:

entry identifier, integer. It can be a sample or a task within a sample

request Content-Type:

application/json, object containing the parameter(s) to be updated, any parameter not sent will not be modified.

statuscode:

200: no error

statuscode:

409: sample info could not be updated, possibly because the given sample does not exist in the queue

PUT /mxcube/api/v0.1/queue/(node_id)/toggle#
Toggle a sample or a method checked status
parameter id:

node identifier, integer

statuscode:

200: no error

statuscode:

409: node could not be toggled

GET /mxcube/api/v0.1/queue/available_tasks#

Returns a list of all available tasks

POST /mxcube/api/v0.1/queue/update_dependent_field#

Updates the dependent fields of the given task