Download OpenAPI specification:Download
The return codes are usually specified with each API function, but in general:
Content-type: application/json
. This does not necessarily mean that the operation was successful, but that the function was called correctly. Reasons why the operation could fail are:The usual response dictionary has the following format:
{ "success": True/False, "message": "Usually an error when there was a failure. The message can generally be ignored if the operation was successful.", "response": "The data returned if the operation was successful." }
Content-type: text/plain
.Content-type: text/plain
.httpd
.Update the details for a list of workers. Requires a secure connection.
harvester_id required | string harvester id, e.g. |
workers required | Array of objects list of worker dictionaries that describe the fields of a pandaserver/taskbuffer/WorkerSpec object.
|
{- "harvester_id": "string",
- "workers": [
- { }
]
}
{- "success": true,
- "message": "string",
- "response": { }
}
Update the service metrics for a harvester instance. Requires a secure connection.
harvester_id required | string harvester id, e.g. |
metrics required | Array of objects list of triplets
|
{- "harvester_id": "string",
- "metrics": [
- { }
]
}
{- "success": true,
- "message": "string",
- "response": { }
}
Send a heartbeat for harvester and optionally update the instance data. User and host are retrieved from the request object and updated in the database. Requires a secure connection.
harvester_id required | string harvester id, e.g. |
data required | Array of objects list of data to be updated in the PanDA database |
{- "harvester_id": "string",
- "data": [
- { }
]
}
{- "success": true,
- "message": "string",
- "response": { }
}
Report statistics for the workers managed by a harvester instance at a PanDA queue. Requires a secure connection.
harvester_id required | string harvester id, e.g. |
panda_queue required | string Name of the PanDA queue, e.g. |
statistics required | string JSON string containing a dictionary with the statistics to be reported. It will be stored as a json in the database. E.g.
|
{- "harvester_id": "string",
- "panda_queue": "string",
- "statistics": "string"
}
{- "success": true,
- "message": "string",
- "response": { }
}
Retrieves the commands for a specified harvester instance. Requires a secure connection and production role.
harvester_id required | string harvester id, e.g. |
n_commands required | string The number of commands to retrieve, e.g. |
timeout | string The timeout value. Defaults to |
{- "success": true,
- "message": "string",
- "response": { }
}
Acknowledges the list of command IDs in the PanDA database. Requires a secure connection and production role.
command_ids required | string A list of command IDs to acknowledge, e.g. |
timeout | string The timeout value. Defaults to |
{- "success": true,
- "message": "string",
- "response": { }
}
Send a command to harvester to kill the workers in a PanDA queue, with the possibility of specifying filters by status, CE or submission host. Requires a secure connection and production role.
panda_queue required | string Name of the PanDA queue, e.g. |
status_list required | Array of objects list of worker statuses to be considered, e.g. |
ce_list required | Array of objects list of the Computing Elements to be considered, e.g. |
submission_host_list required | Array of objects list of the harvester submission hosts to be considered, e.g. |
{- "panda_queue": "string",
- "status_list": [
- { }
], - "ce_list": [
- { }
], - "submission_host_list": [
- { }
]
}
{- "success": true,
- "message": "string",
- "response": { }
}
Set the target number of slots for a PanDA queue, when you want to build up job pressure. Requires secure connection and production role.
panda_queue required | string Name of the PanDA queue, e.g. |
slots required | integer Number of slots to set, e.g. |
global_share | string Global share the slots apply to. Optional - by default it applies to the whole queue. E.g. |
resource_type | string Resource type the slots apply to. Optional - by default it applies to the whole queue. E.g. |
expiration_date | string The expiration date of the slots. Optional - by default it applies indefinitely. |
{- "panda_queue": "string",
- "slots": 0,
- "global_share": "string",
- "resource_type": "string",
- "expiration_date": "string"
}
{- "success": true,
- "message": "string",
- "response": { }
}
jedi_task_id required | integer JEDI Task ID |
new_parameters required | string a json string of new parameters the task uses when rerunning |
no_child_retry required | boolean if True, the child tasks are not retried |
disable_staging_mode required | boolean if True, the task skips staging state and directly goes to subsequent state |
keep_gshare_priority required | boolean if True, the task keeps current gshare and priority |
{- "jedi_task_id": 0,
- "new_parameters": "string",
- "no_child_retry": true,
- "disable_staging_mode": true,
- "keep_gshare_priority": true
}
{- "success": true,
- "message": "string",
- "response": { }
}
jedi_task_id required | integer JEDI Task ID |
mode required | string mode of operation, runonce or storeonce |
multiplicity required | integer number of clones to be created for each target |
num_sites required | integer number of sites to be used for each target |
{- "jedi_task_id": 0,
- "mode": "string",
- "multiplicity": 0,
- "num_sites": 0
}
{- "success": true,
- "message": "string",
- "response": { }
}
jedi_task_id required | integer JEDI Task ID |
{- "jedi_task_id": 0
}
{- "success": true,
- "message": "string",
- "response": { }
}