Download OpenAPI specification:
?job_ids=1&job_ids=2).export pandaurl=https://pandaserver.cern.ch:25443
curl --capath "${X509_CERT_DIR}" --cert "${X509_USER_PROXY}" --key "${X509_USER_PROXY}" "${pandaurl}/api/v1/task/get_status?task_id=12345"
import os
import requests
pandaurl = "https://pandaserver.cern.ch:25443"
proxy = os.environ["X509_USER_PROXY"]
response = requests.get(
f"{pandaurl}/api/v1/task/get_status",
params={"task_id": 12345},
cert=(proxy, proxy),
verify=os.environ["X509_CERT_DIR"],
)
export pandaurl=https://pandaserver.cern.ch:25443
curl --capath "${X509_CERT_DIR}" --cert "${X509_USER_PROXY}" --key "${X509_USER_PROXY}" --json '{"task_id": 12345}' "${pandaurl}/api/v1/file_server/upload_file_recovery_request"
import os
import requests
pandaurl = "https://pandaserver.cern.ch:25443"
proxy = os.environ["X509_USER_PROXY"]
response = requests.post(
f"{pandaurl}/api/v1/file_server/upload_file_recovery_request",
json={"task_id": 12345},
cert=(proxy, proxy),
verify=os.environ["X509_CERT_DIR"],
)
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.", "data": "The data returned if the operation was successful." }
Content-type: text/plain.Content-type: text/plain.httpd.Submit a grep request to be processed asynchronously on the target service or machine. A line matches either a regular expression or any of a list of fixed strings.
| log_filename required | string filename (not full path) of the log file under panda_config.logdir. A .gz is refused while the file it is compressed from is still there, as logrotate removes that file only once the .gz is complete: the machine's result is then failed with an error_msg ending in "Being compressed", and the .gz may be asked about again later, as compressing a large log takes tens of minutes |
| pattern required | string regular expression to search for, in the syntax of rg whether the file is compressed or not; mutually exclusive with fixed_strings |
| fixed_strings required | Array of strings strings to search for as they are, a line matching when it holds any of them (1..1000 strings, each 1..1000 characters and without a line break); mutually exclusive with pattern |
| service_name required | string target service (e.g. "server", "jedi"); mutually exclusive with machine_name |
| machine_name required | string target specific machine hostname; mutually exclusive with service_name |
| max_matches required | integer stop after this many matching lines (1..200000). Defaults to a bound that leaves the stored result unchanged; results that hit the cap come back with truncated set, so an incomplete answer is never read as an absent one |
| tail_bytes required | integer search only the last this many bytes of the file (1..3221225472), which is how to ask about recent activity in a multi-gigabyte log. The search starts with the first whole line there. Ignored for .gz files, where an arbitrary offset is not a valid stream. Cold disks read 7 to 33 MB/s, so on a slow day the widest window does not finish in the 240 s a grep may run; since and until read fewer bytes |
| whole_records required | boolean give each matching line with the rest of its log record: the lines after it that do not start with a time stamp (YYYY-MM-DD HH:MM:SS), such as those of a traceback, up to the next line that does. A record comes with at most 200 lines after its matching line. The result of each machine is then JSON instead of the lines: {"records": [...], "window": {...} or null}
|
| since required | string search only the bytes of the file that hold the records at or after this time, in UTC, e.g.
|
| until required | string search only the bytes that hold the records before this time, in the same format; they end at a record stamped at least 60 s after until. Without since, the search starts at the beginning of the file. When both are given, since must be before until |
{- "log_filename": "string",
- "pattern": "string",
- "fixed_strings": [
- "string"
], - "service_name": "string",
- "machine_name": "string",
- "max_matches": 0,
- "tail_bytes": 0,
- "whole_records": true,
- "since": "string",
- "until": "string"
}{- "success": true,
- "message": "string",
- "data": {
- "async_id": "string",
- "request_id": "string"
}
}Submit a request to list the log files under panda_config.logdir on the target service or machine: every file whose name starts with "panda-", the rotated ones too, so that a caller can choose the files to grep by their names and times rather than guess how the logs are rotated.
The result of each machine in /v1/async_process/get_result is a JSON list of its files, in the order of their
names, [{"name": str, "size": int, "mtime": "YYYY-MM-DD HH:MM:SS"}, ...] with mtime in UTC. It comes back
truncated when the list does not fit in 1 MB, which a machine keeping its logs for months reaches; log_names
limits the list to the logs asked about. A .gz still being compressed, which a grep refuses, is left out, while
the file it is compressed from is listed.
| service_name required | string target service (e.g. "server", "jedi"); mutually exclusive with machine_name |
| machine_name required | string target specific machine hostname; mutually exclusive with service_name |
| log_names required | Array of strings list only these logs and the files rotated from them: a file whose name is one of them, or is one of them followed by "-", so that panda-a.log takes in panda-a.log-20261012.gz but not panda-ab.log (1..100 names, each 1..255 characters starting with "panda-" and without "/"). A name with no file is left out of the list. Defaults to every file |
{- "service_name": "string",
- "machine_name": "string",
- "log_names": [
- "string"
]
}{- "success": true,
- "message": "string",
- "data": {
- "async_id": "string",
- "request_id": "string"
}
}Submit a batch of queries reading tables of the database, to be run asynchronously by one machine of the server, on its
read-only account and in one read-only transaction. The queries are structured, not SQL: each reads one or more tables
of an allowlist with conditions on their columns, and an in may take its values from the answer to an earlier query
of the batch. Only the number and the size of the queries are checked here. The queries themselves are checked when
they run, each on its own, so a query refused or failed comes back with its reason while the others are answered.
A query must look up an index, and its index lookups, keys x partitions touched, must be within the server's
db_read_probe_budget, and those of the whole batch within three times it. The form of a query is described in pandaserver/asyncprocess/db_read/request_shape.py and the
form of the answers in pandaserver/asyncprocess/db_read_handlers.py. Requires a secure connection and a DN in the
allowAsyncRequest list.
| queries required | Array of objects the queries, at most 10, e.g.
|
{- "queries": [
- { }
]
}{- "success": true,
- "message": "string",
- "data": { }
}Submit a sleep+echo request, run on any one machine in the target service. Results are readable by the requester or any production-role caller (access="production").
| service_name required | string target service; the job runs on exactly one of its alive machines |
| message required | string text echoed back as the result |
| seconds required | integer seconds to sleep before echoing (0..60) |
{- "service_name": "string",
- "message": "string",
- "seconds": 0
}{- "success": true,
- "message": "string",
- "data": {
- "async_id": "string",
- "request_id": "string"
}
}Poll for the results of an async request, of any type and from any submitting module.
The response has two shapes, depending on what the request's handler stores.
Handlers writing raw output (grep, log_list, sleep_echo) report one entry per machine:
{
"success": bool, # whether this poll succeeded
"message": str,
"data": {
"overall_status": "complete" | "pending",
"expected_machines": [str, ...],
"results": [{"machine_name": str, "status": str, "result": str,
"truncated": int, "error_msg": str, "attempts": int,
"started_at": str, "finished_at": str,
"stderr": str, "return_code": int}, ...]
}
}
overall_status is "complete" when all expected machines have a terminal result (done/failed).
Handlers writing a structured payload (e.g. the Data Carousel operations submitted by pandaserver.api.v1.data_carousel_api) report that payload at the top level instead:
{
"success": bool, # whether the OPERATION succeeded
"message": str, # the operation's message
"data": <the operation's data>,
"async_meta": {"status": "pending" | "running" | "done" | "failed",
"attempts": int, "started_at": str, "finished_at": str,
"error_msg": str}
}
Poll on async_meta.status, not on success: success is False while the request is still pending or running, and False again when the handler crashed (status "failed", reason in async_meta.error_msg), so it only tells the operation's outcome once status is "done". async_meta is present whenever the poll itself succeeded, so a response without it is a failure of this call (not found, not authorized) rather than a report about the request.
| async_id required | string UUID returned by a submit_* endpoint |
| request_id required | string the name async_id had before the rename, still accepted so callers that have not moved keep working; ignored when async_id is given |
{- "success": true,
- "message": "string",
- "data": { }
}Set a key-value pair to store in PanDA. Requires a secure connection.
| key required | string Key to reference the secret |
| value required | string Value of the secret |
{- "key": "string",
- "value": "string"
}{- "success": true,
- "message": "string",
- "data": null
}Get the secrets for a user identified by a list of keys. Requires a secure connection.
| keys | Array of strings List of keys to reference the secrets to retrieve |
{- "keys": [
- "string"
]
}{- "success": true,
- "message": "string",
- "data": "string"
}This function retrieves the distinguished name (DN) from the request and uses it to get a key pair. Requires a secure connection.
| public_key_name required | string The name of the public key. |
| private_key_name required | string The name of the private key. |
{- "success": true,
- "message": "string",
- "data": {
- "public_key": "string",
- "private_key": "string"
}
}Get the x509 proxy certificate for a user with a role. Requires a secure connection.
| role | string The role of the user. Defaults to None. |
| dn | string The distinguished name of the user. Defaults to None. |
{- "success": true,
- "message": "string",
- "data": {
- "user_proxy": "string"
}
}Get the OAuth access token for the specified client. Requires a secure connection.
| client_name required | string client_name for the token as defined in token_cache_config |
| token_key | string key to get the token from the token cache. Defaults to None. |
| audience | string audience of the token, required for clients with audience_from_request. Defaults to None. |
| scope | string space separated scopes, required for clients with scope_from_request. Defaults to None. |
{- "success": true,
- "message": "string",
- "data": {
- "user_proxy": "string"
}
}This function retrieves the distinguished name (DN) from the request and uses it to get a token key for the specified client. Requires a secure connection.
| client_name required | string The name of the client requesting the token key |
{- "success": true,
- "message": "string",
- "data": {
- "tokenKey": "string"
}
}The current active staging request will be cancelled, and a new request will be created with the newly selected destination RSE, excluding the original destination.
The requests can be specified by request_id or dataset (if both exist, request_id is taken).
Requires a secure connection production role.
Runs synchronously; see submit_change_staging_destination for the asynchronous flavour.
| request_id required | integer request_id of the staging request, e.g. |
| dataset required | string dataset name of the staging request in the format of Rucio DID, e.g. |
{- "request_id": 0,
- "dataset": "string"
}{- "success": true,
- "message": "string",
- "data": {
- "request_id": 0,
- "new_request_id": 0,
- "dataset": "string"
}
}If the request is queued, its source_rse will be rechosen, excluding the original source.
If the request is staging, the source_replica_expression of its DDM rule is unset so new source can be tried.
Only effective on queued or staging requests.
The requests can be specified by request_id or dataset (if both exist, request_id is taken).
Requires a secure connection production role.
Runs synchronously; see submit_change_staging_source for the asynchronous flavour.
| request_id required | integer request_id of the staging request, e.g. |
| dataset required | string dataset name of the staging request in the format of Rucio DID, e.g. |
| cancel_fts required | boolean whether to cancel current FTS requests on DDM, False by default |
| change_src_expr required | boolean whether to change source_replica_expression of the DDM rule by replacing old source with new one, instead of just dropping old source |
| source_rse required | string if set, use this source RSE instead of choosing one randomly, also force change_src_expr to be True; default is None |
{- "request_id": 0,
- "dataset": "string",
- "cancel_fts": true,
- "change_src_expr": true,
- "source_rse": "string"
}{- "success": true,
- "message": "string",
- "data": {
- "request_id": 0,
- "dataset": "string",
- "source_rse": "string",
- "ddm_rule_id": "string"
}
}The request will skip the queue and go to staging immediately (will submit DDM rules).
Only effective on queued requests.
The requests can be specified by request_id or dataset (if both exist, request_id is taken).
Requires a secure connection production role.
Runs synchronously; see submit_force_to_staging for the asynchronous flavour.
| request_id required | integer request_id of the staging request, e.g. |
| dataset required | string dataset name of the staging request in the format of Rucio DID, e.g. |
{- "request_id": 0,
- "dataset": "string"
}{- "success": true,
- "message": "string",
- "data": {
- "request_id": 0,
- "dataset": "string",
- "status": "string",
- "ddm_rule_id": "string"
}
}If the request is done and has no related tasks, it can be retired to clean up the DDM rules and replicas.
The requests can be specified by request_id or dataset (if both exist, request_id is taken).
Requires a secure connection production role.
Runs synchronously; see submit_retire_unused for the asynchronous flavour.
| request_id required | integer request_id of the staging request, e.g. |
| dataset required | string dataset name of the staging request in the format of Rucio DID, e.g. |
{- "request_id": 0,
- "dataset": "string"
}{- "success": true,
- "message": "string",
- "data": {
- "request_id": 0,
- "dataset": "string",
- "status": "string",
- "ddm_rule_id": "string"
}
}Asynchronous flavour of change_staging_destination: the request is registered in DB and
processed by the async request daemon, so the call returns without waiting for DDM or iDDS.
Poll /v1/async_process/get_result with the returned async_id to get the
outcome; it reports the operation's own success, message and data at the top level.
Requires a secure connection production role.
| request_id required | integer request_id of the staging request, e.g. |
| dataset required | string dataset name of the staging request in the format of Rucio DID, e.g. |
{- "request_id": 0,
- "dataset": "string"
}{- "success": true,
- "message": "string",
- "data": {
- "async_id": "string"
}
}Asynchronous flavour of change_staging_source: the request is registered in DB and
processed by the async request daemon, so the call returns without waiting for DDM or iDDS.
Poll /v1/async_process/get_result with the returned async_id to get the
outcome; it reports the operation's own success, message and data at the top level.
Requires a secure connection production role.
| request_id required | integer request_id of the staging request, e.g. |
| dataset required | string dataset name of the staging request in the format of Rucio DID, e.g. |
| cancel_fts required | boolean whether to cancel current FTS requests on DDM, False by default |
| change_src_expr required | boolean whether to change source_replica_expression of the DDM rule by replacing old source with new one, instead of just dropping old source |
| source_rse required | string if set, use this source RSE instead of choosing one randomly, also force change_src_expr to be True; default is None |
{- "request_id": 0,
- "dataset": "string",
- "cancel_fts": true,
- "change_src_expr": true,
- "source_rse": "string"
}{- "success": true,
- "message": "string",
- "data": {
- "async_id": "string"
}
}Asynchronous flavour of force_to_staging: the request is registered in DB and processed
by the async request daemon, so the call returns without waiting for DDM or iDDS.
Poll /v1/async_process/get_result with the returned async_id to get the
outcome; it reports the operation's own success, message and data at the top level.
Requires a secure connection production role.
| request_id required | integer request_id of the staging request, e.g. |
| dataset required | string dataset name of the staging request in the format of Rucio DID, e.g. |
{- "request_id": 0,
- "dataset": "string"
}{- "success": true,
- "message": "string",
- "data": {
- "async_id": "string"
}
}Asynchronous flavour of retire_unused: the request is registered in DB and processed by
the async request daemon, so the call returns without waiting for DDM or iDDS.
Poll /v1/async_process/get_result with the returned async_id to get the
outcome; it reports the operation's own success, message and data at the top level.
Requires a secure connection production role.
| request_id required | integer request_id of the staging request, e.g. |
| dataset required | string dataset name of the staging request in the format of Rucio DID, e.g. |
{- "request_id": 0,
- "dataset": "string"
}{- "success": true,
- "message": "string",
- "data": {
- "async_id": "string"
}
}This function returns the count of available event ranges for a given job_id, jobset_id, and task_id. Requires a secure connection and production role.
| job_id required | integer PanDA job ID |
| jobset_id required | integer Jobset ID |
| task_id required | integer JEDI task ID |
| timeout | integer The timeout value. Defaults to 60. |
{- "success": true,
- "message": "string",
- "data": 0
}Gets a dictionary with the status of the event ranges for the given pairs of PanDA job IDs and JEDI task IDs. Requires a secure connection.
| job_task_ids required | integer json encoded string with JEDI task ID + PanDA job ID pairs, in the format |
{- "success": true,
- "message": "string",
- "data": { }
}Acquires a list of event ranges with a given PandaID for execution. Requires a secure connection and production role.
| job_id required | string PanDa job ID. |
| jobset_id required | string Jobset ID. |
| task_id | integer JEDI task ID. Defaults to None. |
| n_ranges | integer The number of event ranges to retrieve. Defaults to 10. |
| timeout | integer The timeout value. Defaults to 60. |
| scattered | boolean Whether the event ranges are scattered. Defaults to None. |
| segment_id | integer The segment ID. Defaults to None. |
{- "job_id": "string",
- "jobset_id": "string",
- "task_id": 0,
- "n_ranges": 0,
- "timeout": 0,
- "scattered": true,
- "segment_id": 0
}{- "success": true,
- "message": "string",
- "data": [
- {
- "eventRangeID": "string",
- "startEvent": 0,
- "lastEvent": 0,
- "LFN": "string",
- "GUID": "string",
- "scope": "string"
}
]
}Updates the status of a specific event range. Requires a secure connection and production role.
| event_range_id required | string The ID of the event range to update. |
| event_range_status required | string The new status of the event range. |
| core_count | integer The number of cores used. Defaults to None. |
| cpu_consumption_time | number The CPU consumption time. Defaults to None. |
| object_store_id | integer The object store ID. Defaults to None. |
| timeout | integer The timeout value. Defaults to 60. |
{- "event_range_id": "string",
- "event_range_status": "string",
- "core_count": 0,
- "cpu_consumption_time": 0,
- "object_store_id": 0,
- "timeout": 0
}{- "success": true,
- "message": "string",
- "data": {
- "Command": "string"
}
}Updates the event ranges in bulk. Requires a secure connection and production role.
| event_ranges required | string JSON-encoded string containing the list of event ranges to update. |
| timeout | integer The timeout value. Defaults to 120. |
| version | integer The version of the event ranges. Defaults to 0. Version 0: normal event service Version 1: jumbo jobs with zip file support Version 2: fine-grained processing where events can be updated before being dispatched |
{- "event_ranges": "string",
- "timeout": 0,
- "version": 0
}{- "success": true,
- "message": "string",
- "data": { }
}Uploads a JEDI log file and returns the URL to the file. If there is already a log file for the task, it will be overwritten. Requires a secure connection and production role.
| file required | string werkzeug.FileStorage object to be uploaded. |
{- "file": "string"
}{- "success": true,
- "message": "string",
- "data": "string"
}Updates a JEDI log file, appending more content at the end of the file. Requires a secure connection and production role.
| file required | string werkzeug.FileStorage object to be updated. |
{- "file": "string"
}{- "success": true,
- "message": "string",
- "data": null
}Downloads the JEDI log file, if required at a particular offset.
| log_name required | string log file name |
| offset required | integer offset in the file |
{- "log_name": "string",
- "offset": 0
}Uploads a file to the cache. When not touched, cache files are expired after some time. User caches will get registered in the PanDA database and will account towards user limits. PanDA log files will be stored in gzip format. Requires a secure connection.
| file required | string werkzeug.FileStorage object to be uploaded. |
{- "file": "string"
}{- "success": true,
- "message": "string",
- "data": null
}Touches a file in the cache directory. It avoids the file to expire and being deleted by server clean up processes. Requires a secure connection.
| file_name required | string file name to be deleted |
{- "file_name": "string"
}{- "success": true,
- "message": "string",
- "data": null
}Deletes a file from the cache directory. Currently a dummy method. Requires a secure connection.
| file_name required | string file name to be deleted |
{- "file_name": "string"
}{- "success": true,
- "message": "string",
- "data": null
}Registers a file from the cache directory into the PanDA database, so that PanDA knows the server it's on. Requires a secure connection and production role.
| user_name required | string user that uploaded the file |
| file_name required | string file name |
| file_size required | integer file size |
| checksum required | string checksum |
{- "user_name": "string",
- "file_name": "string",
- "file_size": 0,
- "checksum": "string"
}{- "success": true,
- "message": "string",
- "data": null
}Validates a cache file owned by the caller by checking the file metadata that was registered in the database. Requires a secure connection.
| file_size required | integer file size |
| checksum required | integer checksum |
{- "file_size": 0,
- "checksum": 0
}{- "success": true,
- "message": "string",
- "data": null
}Uploads a HPO checkpoint file to the server. Requires a secure connection.
| file required | string werkzeug.FileStorage object to be uploaded. |
{- "file": "string"
}{- "success": true,
- "message": "string",
- "data": "string"
}Deletes a HPO checkpoint file from the server. Requires a secure connection.
| task_id required | string JEDI task ID |
| sub_id required | string sub ID. |
{- "task_id": "string",
- "sub_id": "string"
}{- "success": true,
- "message": "string",
- "data": null
}Upload request to recover lost files. Either task_id or dataset needs to be specified. Requires a secure connection.
| task_id | integer JEDI task ID. Either task_id or dataset must be provided. |
| dry_run | boolean dry run flag. |
| dataset | string the dataset name in which to recover files. Either task_id or dataset must be provided. |
| files | Array of strings list of file names to recover. |
| no_child_retry | boolean flag to avoid retrying child tasks. Default is True. |
| resurrect_datasets | boolean Specifies whether to resurrect datasets when they were already deleted. Default is False. |
| force | boolean To force recovery even if there is no lost file. Default is False. |
| reproduce_parent | boolean Specifies whether to reproduce the parent task if the input files that originally generated the lost files have been deleted. Default: False. |
| reproduce_upto_nth_gen | integer Defines how many generations of parent tasks should be reproduced. Default 0, meaning no parent tasks are reproduced. When this is set to N>0, reproduce_parent is set to True automatically. |
{- "task_id": 0,
- "dry_run": true,
- "dataset": "string",
- "files": [
- "string"
], - "no_child_retry": true,
- "resurrect_datasets": true,
- "force": true,
- "reproduce_parent": true,
- "reproduce_upto_nth_gen": 0
}{- "success": true,
- "message": "string",
- "data": {
- "logFileURL": "string"
}
}Uploads a workflow request to the server. The request can be processed synchronously or asynchronously. Requires a secure connection.
| data required | string workflow request data |
| dry_run required | boolean requests the workflow to be executed synchronously in dry_run mode |
| sync required | boolean requests the workflow to be processed synchronously |
{- "data": "string",
- "dry_run": true,
- "sync": true
}{- "success": true,
- "message": "string",
- "data": {
- "status": true,
- "request_id": 0,
- "log": "string"
}
}Uploads an event picking request to the server. Requires a secure connection.
| run_event_list required | string run and event list. |
| data_type required | string data type. |
| stream_name required | string stream name. |
| dataset_name required | string dataset name. |
| ami_tag required | string AMI tag. |
| user_dataset_name required | string user dataset name. |
| locked_by required | string locking agent. |
| parameters required | string parameters. |
| input_file_list required | string input file list. |
| n_sites required | string number of sites. |
| user_task_name required | string user task name. |
| ei_api required | string event index API. |
| include_guids required | boolean flag to indicate if GUIDs are included with the run-event list |
{- "run_event_list": "string",
- "data_type": "string",
- "stream_name": "string",
- "dataset_name": "string",
- "ami_tag": "string",
- "user_dataset_name": "string",
- "locked_by": "string",
- "parameters": "string",
- "input_file_list": "string",
- "n_sites": "string",
- "user_task_name": "string",
- "ei_api": "string",
- "include_guids": true
}{- "success": true,
- "message": "string",
- "data": null
}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",
- "data": [
- true
]
}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",
- "data": [
- true
]
}Add messages for a harvester instance. Requires a secure connection.
| harvester_id required | string harvester id, e.g. |
| dialogs required | Array of objects list of dialog dictionaries, e.g.
|
{- "harvester_id": "string",
- "dialogs": [
- { }
]
}{- "success": true,
- "message": "string",
- "data": null
}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 | object metadata dictionary to be updated in the PanDA database, e.g. |
{- "harvester_id": "string",
- "data": { }
}{- "success": true,
- "message": "string",
- "data": null
}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",
- "data": null
}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 | integer The number of commands to retrieve, e.g. |
| timeout | integer The timeout value. Defaults to |
{- "harvester_id": "string",
- "n_commands": 0,
- "timeout": 0
}{- "success": true,
- "message": "string",
- "data": [
- {
- "command_id": 0,
- "command": "string",
- "params": { },
- "ack_requested": 0,
- "creation_date": "string"
}
]
}Acknowledges the list of command IDs in the PanDA database. Requires a secure connection and production role.
| command_ids required | Array of objects A list of command IDs to acknowledge, e.g. |
| timeout | integer The timeout value. Defaults to |
{- "command_ids": [
- { }
], - "timeout": 0
}{- "success": true,
- "message": "string",
- "data": null
}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",
- "data": null
}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",
- "data": null
}Gets the status of a job and command to the pilot if any. Requires a secure connection.
| job_ids required | Array of integers list of PanDA job IDs. |
| timeout | integer The timeout value. Defaults to 60. |
{- "success": true,
- "message": "string",
- "data": [
- {
- "status": "string",
- "command": "string"
}
]
}Gets the description of a job from the main/active schema. The description includes job attributes, job parameters and related file attributes. Requires a secure connection.
| job_ids required | Array of integers List of PanDA job IDs. |
| timeout | integer The timeout value. Defaults to 60. |
{- "success": true,
- "message": "string",
- "data": [
- { }
]
}Gets the description of a job, also looking into the secondary/archive schema. The description includes job attributes, job parameters and related file attributes. Requires a secure connection.
A job is looked for in the live tables first, and in the archive only when it is in none of them, within the last 90 days. By default a job that a database error kept from being read is null, as a job not found is, after the live tables were tried three times with 10 to 20 seconds between. With report_errors it is {"error": code} instead, at the first error, and a job that the live tables could not be read for is not looked for in the archive.
| job_ids required | Array of integers List of PanDA job IDs. |
| report_errors | boolean tell a database error from a job not found. Defaults to False. |
| timeout | integer The timeout value. Defaults to 60. |
{- "success": true,
- "message": "string",
- "data": [
- {
- "error": "string"
}
]
}Gets the status changes recorded for jobs in jobs_StatusLog, oldest first for each job, optionally within a time window. Requires a secure connection.
Each job is looked up once in every daily partition of jobs_StatusLog the window touches, and in every partition without a window, so the most jobs one call may name is the db_read_probe_budget of the server divided by the number of partitions touched. A call naming more is refused, not cut short. Both numbers come back with every answer, so a caller can split its jobs into calls that fit. A window around the lifetimes of the jobs, e.g. from their creationTime, lets one call take many more jobs than the ~10 a call without a window takes.
The window is widened, so that a change is not missed when the clock of the server that wrote a time such as creationTime and the clock of the database differ by a little: both ends are first moved out by 10 minutes, then to whole UTC days, since back to the start of its day and until forward to the start of the next day. Whole days touch no more daily partitions; the 10 minutes add one only when an end lies within 10 minutes of midnight.
POST is accepted too, with the arguments in a JSON body (Content-Type: application/json). A GET puts every job ID in the URL, and a web server refuses a request line over its limit with an HTTP error before the call gets here: Apache's default of 8190 bytes holds about 420 job IDs. A form-encoded POST is refused, since only the values of a GET are converted from strings.
| job_ids required | Array of integers list of PanDA job IDs |
| since | string read only the changes at or after this time, in UTC, e.g. |
| until | string read only the changes before this time, in UTC, in the same format |
{- "success": true,
- "message": "string",
- "data": { }
}Gets the rows of the PanDA Datasets table (the datasets jobs work with, such as the _sub and _dis ones made for them, not JEDI_Datasets) for the given names. Requires a secure connection.
The table keeps one row per dataset, under the form of the name its first writer used, scope:name or name. So each name is looked up in both forms: a name with a scope also without it, and a name without one also with the scope its first part gives (up to the first dot, or up to the second for user and group datasets), which is the scope the vuid of the dataset is made with. Every row says which of the given names it answers.
Each form is a key, looked up once in every partition of the table, which is partitioned on modificationdate, so the most names one call may give is the db_read_probe_budget of the server divided by keys_per_name times the number of partitions. A call giving more is refused, not cut short. The three numbers come back with every answer, so a caller can split its names into calls that fit.
POST is accepted too, with the arguments in a JSON body (Content-Type: application/json). A GET puts every name in the URL, and a web server refuses a request line over its limit with an HTTP error before the call gets here. A form-encoded POST is refused, since only the values of a GET are converted from strings.
| names required | Array of strings names of the datasets |
{- "success": true,
- "message": "string",
- "data": { }
}Gets the execution script for a job, including Rucio download of input, ALRB setup, downloading transformation script and running the script.
The generated script takes options to use only a subset of the input files (--nfiles=<N>) and to read them directly from storage
through a generated PoolFileCatalog.xml instead of downloading them (--direct, --rse_expression=<RSE_EXP>, --schemes=<SCHEMES>).
| job_id required | integer PanDA job ID |
| days | integer Number of days to look back in the archive tables. Defaults to 30. |
Kills the jobs with the given PanDA IDs. Requires a secure connection.
| job_ids required | Array of objects List of PanDA job IDs |
| code | integer The kill code. Defaults to None.
|
| use_email_as_id | boolean Use the email as ID. Defaults to False. |
| kill_options | Array of objects Defaults to []. Possible options are: |
{- "job_ids": [
- { }
], - "code": 0,
- "use_email_as_id": true,
- "kill_options": [
- { }
]
}{- "success": true,
- "message": "string",
- "data": [
- true
]
}Reassigns a list of jobs. Requires a secure connection.
| job_ids required | Array of objects List of PanDA job IDs |
{- "job_ids": [
- { }
]
}{- "success": true,
- "message": "string",
- "data": null
}Sets a command to the pilot for a job. Requires a secure connection and production role.
| job_id required | integer PanDA job ID |
| command required | string The command for the pilot, e.g. |
{- "job_id": 0,
- "command": "string"
}{- "success": true,
- "message": "string",
- "data": null
}Sets the debug mode for a job. Requires a secure connection and production role.
| job_id required | integer PanDA job ID |
| mode required | boolean True to set debug mode, False to unset debug mode |
{- "job_id": 0,
- "mode": true
}{- "success": true,
- "message": "string",
- "data": null
}Sets the debug mode for a job. Requires a secure connection.
| jobs required | string JSON string with a list of job specs |
{- "jobs": "string"
}{- "success": true,
- "message": "string",
- "data": [
- [
- null
]
]
}Gets a dictionary of site specs. By default analysis sites are returned. Requires a secure connection.
| type | string type of site as defined in CRIC (currently |
{- "success": true,
- "message": "string",
- "data": { }
}Gets the resource types (SCORE, MCORE, etc.) together with their definitions. Requires a secure connection and production role.
{- "success": true,
- "message": "string",
- "data": [
- {
- "resource_name": "string",
- "mincore": 0,
- "maxcore": 0,
- "minrampercore": 0,
- "maxrampercore": 0
}
]
}Acquire jobs for the pilot. The jobs are reserved, the job status is updated and the jobs are returned. Requires a secure connection.
| site_name required | string The PanDA queue name |
| timeout | integer Request timeout in seconds. Optional and defaults to 60. |
| memory | integer Memory limit for the job. Optional and defaults to |
| disk_space | integer Disk space limit for the job. Optional and defaults to |
| prod_source_label | string Prodsourcelabel, e.g. |
| node | string Identifier of the worker node/slot. Optional and defaults to |
| computing_element | string Computing element. Optional and defaults to |
| prod_user_id | string User ID of the job. Optional and defaults to |
| get_proxy_key | boolean Flag to request a proxy key.Optional and defaults to |
| task_id | integer JEDI task ID of the job. Optional and defaults to |
| n_jobs | integer Number of jobs for bulk requests. Optional and defaults to |
| background | boolean Background flag. Optional and defaults to |
| resource_type | string Resource type of the job, e.g. |
| harvester_id | string Harvester ID, used to update the worker entry in the DB. Optional and defaults to |
| worker_id | integer Worker ID, used to update the worker entry in the DB. Optional and defaults to |
| scheduler_id | string Scheduler, e.g. harvester ID. Optional and defaults to |
| job_type | string Job type, e.g. |
| via_topic | boolean Topic for message broker. Optional and defaults to |
| remaining_time | integer Remaining walltime. Optional and defaults to |
| target_architecture | object Hardware of the worker node, either as a dictionary or as a JSON-encoded string.
Only jobs of tasks whose hardware requirements are satisfied by the worker node are returned.
The |
| container_name | string The container image the worker is bound to, for a worker already running inside its
image and unable to start another one. Only jobs whose |
{- "site_name": "string",
- "timeout": 0,
- "memory": 0,
- "disk_space": 0,
- "prod_source_label": "string",
- "node": "string",
- "computing_element": "string",
- "prod_user_id": "string",
- "get_proxy_key": true,
- "task_id": 0,
- "n_jobs": 0,
- "background": true,
- "resource_type": "string",
- "harvester_id": "string",
- "worker_id": 0,
- "scheduler_id": "string",
- "job_type": "string",
- "via_topic": true,
- "remaining_time": 0,
- "target_architecture": { },
- "container_name": "string"
}{- "success": true,
- "message": "string",
- "data": {
- "StatusCode": 0,
- "jobs": [
- { }
]
}
}Gets the status for a list of jobs. Requires a secure connection.
| job_ids required | Array of objects list of job IDs. |
| timeout | integer The timeout value. Defaults to 60. |
{- "success": true,
- "message": "string",
- "data": [
- {
- "job_id": 0,
- "status": "string",
- "attempt_number": 0
}
]
}Updates the details for a job, stores the metadata and excerpts from the pilot log. Requires a secure connection and production role.
| job_id required | integer PanDA job ID |
| job_status | string Job status |
| job_sub_status | string Job sub status. Optional, defaults to |
| start_time | string Job start time in format |
| end_time | string Job end time in format |
| pilot_timing | string String with pilot timings. Optional, defaults to |
| site_name | string PanDA queue name. Optional, defaults to |
| node | string Identifier for worker node/slot. Optional, defaults to |
| scheduler_id | string Scheduler ID, such as harvester instance. Optional, defaults to |
| pilot_id | string Pilot ID. Optional, defaults to |
| batch_id | string Batch ID. Optional, defaults to |
| trans_exit_code | integer Transformation exit code. Optional, defaults to |
| pilot_error_code | integer Pilot error code. Optional, defaults to |
| pilot_error_diag | string Pilot error message. Optional, defaults to |
| exe_error_code | integer Execution error code. Optional, defaults to |
| exe_error_diag | string Execution error message. Optional, defaults to |
| n_events | integer Number of events. Optional, defaults to |
| n_input_files | integer Number of input files. Optional, defaults to |
| attempt_nr | integer Job attempt number. Optional, defaults to |
| cpu_consumption_time | integer CPU consumption time. Optional, defaults to |
| cpu_consumption_unit | string CPU consumption unit, being used for updating some CPU details. Optional, defaults to |
| cpu_conversion_factor | number CPU conversion factor. Optional defaults to |
| core_count | integer Number of cores of the job. Optional, defaults to |
| mean_core_count | integer Mean core count. Optional, defaults to |
| max_rss | integer Measured max RSS memory. Optional, defaults to |
| max_vmem | integer Measured max Virtual memory. Optional, defaults to |
| max_swap | integer Measured max swap memory. Optional, defaults to |
| max_pss | integer Measured max PSS memory. Optional, defaults to |
| avg_rss | integer Measured average RSS. Optional, defaults to |
| avg_vmem | integer Measured average Virtual memory.Optional, defaults to |
| avg_swap | integer Measured average swap memory. Optional, defaults to |
| avg_pss | integer Measured average PSS. Optional, defaults to |
| tot_rchar | integer Measured total read characters. Optional, defaults to |
| tot_wchar | integer Measured total written characters. Optional, defaults to |
| tot_rbytes | integer Measured total read bytes. Optional, defaults to |
| tot_wbytes | integer Measured total written bytes. Optional, defaults to |
| rate_rchar | integer Measured rate for read characters. Optional, defaults to |
| rate_wchar | integer Measured rate for written characters. Optional, defaults to |
| rate_rbytes | integer Measured rate for read bytes. Optional, defaults to |
| rate_wbytes | integer Measured rate for written bytes. Optional, defaults to |
| corrupted_files | string List of corrupted files in comma separated format. Optional, defaults to |
| cpu_architecture_level | string CPU architecture level (e.g. |
| grid | string Grid type. Optional, defaults to |
| source_site | string Source site name. Optional, defaults to |
| destination_site | string Destination site name. Optional, defaults to |
| job_metrics | string Job metrics. Optional, defaults to |
| job_output_report | string Job output report. Optional, defaults to |
| pilot_log | string Pilot log excerpt. Optional, defaults to |
| meta_data | string Job metadata. Optional, defaults to |
| stdout | string Standard output. Optional, defaults to |
| timeout | integer Timeout for the operation in seconds. Optional, defaults to 60 |
{- "job_id": 0,
- "job_status": "string",
- "job_sub_status": "string",
- "start_time": "string",
- "end_time": "string",
- "pilot_timing": "string",
- "site_name": "string",
- "node": "string",
- "scheduler_id": "string",
- "pilot_id": "string",
- "batch_id": "string",
- "trans_exit_code": 0,
- "pilot_error_code": 0,
- "pilot_error_diag": "string",
- "exe_error_code": 0,
- "exe_error_diag": "string",
- "n_events": 0,
- "n_input_files": 0,
- "attempt_nr": 0,
- "cpu_consumption_time": 0,
- "cpu_consumption_unit": "string",
- "cpu_conversion_factor": 0,
- "core_count": 0,
- "mean_core_count": 0,
- "max_rss": 0,
- "max_vmem": 0,
- "max_swap": 0,
- "max_pss": 0,
- "avg_rss": 0,
- "avg_vmem": 0,
- "avg_swap": 0,
- "avg_pss": 0,
- "tot_rchar": 0,
- "tot_wchar": 0,
- "tot_rbytes": 0,
- "tot_wbytes": 0,
- "rate_rchar": 0,
- "rate_wchar": 0,
- "rate_rbytes": 0,
- "rate_wbytes": 0,
- "corrupted_files": "string",
- "cpu_architecture_level": "string",
- "grid": "string",
- "source_site": "string",
- "destination_site": "string",
- "job_metrics": "string",
- "job_output_report": "string",
- "pilot_log": "string",
- "meta_data": "string",
- "stdout": "string",
- "timeout": 0
}{- "success": true,
- "message": "string",
- "data": {
- "StatusCode": 0,
- "command": "string"
}
}Bulk method to update the details for jobs, store the metadata and excerpt from the pilot log. Internally, this method loops over
the jobs and calls update_job for each job. Requires a secure connection and production role.
| job_list required | Array of objects list of job dictionaries to update. The mandatory and optional keys for each job dictionary are the same as the arguments for |
| harvester_id | string Harvester ID. Optional, defaults to |
{- "job_list": [
- { }
], - "harvester_id": "string"
}{- "success": true,
- "message": "string",
- "data": [
- { }
]
}Updates the status of a worker with the information seen by the pilot. Requires a secure connection and production role.
| worker_id required | string The worker ID. |
| harvester_id required | string The harvester ID. |
| status required | string The status of the worker. Must be either 'started' or 'finished'. |
| timeout | integer The timeout value. Defaults to 60. |
| node_id | string The node ID. Defaults to None. |
{- "worker_id": "string",
- "harvester_id": "string",
- "status": "string",
- "timeout": 0,
- "node_id": "string"
}{- "success": true,
- "message": "string",
- "data": null
}Updates a worker node in the worker node map. When already found, it updates the last_seen time. When not found, it adds the worker node. Requires a secure connection and production role.
| site required | string Site name (e.g. ATLAS site name, not PanDA queue). |
| host_name required | string Host name. In the case of reporting in format |
| cpu_model required | string CPU model, e.g. |
| panda_queue | string PanDA queue the worker node is associated to. Optional, defaults to |
| n_logical_cpus | integer Number of logical CPUs: n_sockets * cores_per_socket * threads_per_core.
When SMT is enabled, this is the number of threads. Otherwise it is the number of cores. Optional, defaults to |
| n_sockets | integer Number of sockets. Optional, defaults to |
| cores_per_socket | integer Number of cores per socket. Optional, defaults to |
| threads_per_core | integer Number of threads per core. When SMT is disabled, this is 1. Otherwise a number > 1. Optional, defaults to |
| cpu_architecture | string CPU architecture, e.g. |
| cpu_architecture_level | string CPU architecture level, e.g. |
| clock_speed | number Clock speed in MHz. Optional, defaults to |
| total_memory | integer Total memory in MB. Optional, defaults to |
| total_local_disk | integer Total disk space in GB. Optional, defaults to |
| timeout | integer The timeout value. Defaults to 60. |
{- "site": "string",
- "host_name": "string",
- "cpu_model": "string",
- "panda_queue": "string",
- "n_logical_cpus": 0,
- "n_sockets": 0,
- "cores_per_socket": 0,
- "threads_per_core": 0,
- "cpu_architecture": "string",
- "cpu_architecture_level": "string",
- "clock_speed": 0,
- "total_memory": 0,
- "total_local_disk": 0,
- "timeout": 0
}{- "success": true,
- "message": "string",
- "data": null
}Updates the GPUs associated to a worker node in the worker node map. When already found, it updates the last_seen time. Requires a secure connection and production role.
| site required | string Site name (e.g. ATLAS site name, not PanDA queue). |
| host_name required | string Host name. In the case of reporting in format |
| vendor required | string GPU vendor, e.g. |
| model required | string GPU model, e.g. |
| count required | integer Number of GPUs of this type in the worker node. |
| vram | integer VRAM memory in MB. Defaults to |
| architecture | string GPU architecture, e.g. |
| framework | string Driver framework available, e.g. |
| framework_version | string Version of the driver framework, e.g. |
| driver_version | string Version of the driver, e.g. |
| timeout | integer The timeout value. Defaults to |
{- "site": "string",
- "host_name": "string",
- "vendor": "string",
- "model": "string",
- "count": 0,
- "vram": 0,
- "architecture": "string",
- "framework": "string",
- "framework_version": "string",
- "driver_version": "string",
- "timeout": 0
}{- "success": true,
- "message": "string",
- "data": null
}Inserts the attributes a pilot reports for a job. The attributes for a job can only be inserted once, a second call
for the same job fails. The serialized attributes can be at most MAX_PILOT_ATTRIBUTES_SIZE bytes. Requires a secure connection and production role.
| job_id required | integer PanDA job ID. |
| pilot_version required | string Version of the pilot reporting the attributes. |
| pilot_attributes required | object Dictionary with the attributes to insert. |
| timeout | integer The timeout value. Defaults to 60. |
{- "job_id": 0,
- "pilot_version": "string",
- "pilot_attributes": { },
- "timeout": 0
}{- "success": true,
- "message": "string",
- "data": null
}Get the job statistics by cloud, which includes the active jobs and jobs in final states modified in the last 12 hours. You have to filter the statistics by type, which can be either "production" or "analysis". Used by panglia monitoring. Requires a secure connection.
| type | string can be "analysis" or "production". Defaults to "production" when not provided. |
{- "success": true,
- "message": "string",
- "data": { }
}Get the production job statistics by cloud and processing type, which includes the active jobs and jobs in final states modified in the last 12 hours. Used by panglia monitoring. Requires a secure connection.
{- "success": true,
- "message": "string",
- "data": { }
}Get the job statistics by computing site (PanDA queue) and resource type (SCORE, MCORE, ...). This includes the active jobs and jobs in final states modified in the specified time window (default of 12 hours). Requires a secure connection.
| time_window | integer time window in minutes for the statistics (affects only archived jobs) |
{- "success": true,
- "message": "string",
- "data": { }
}Get the worker node statistics for a site and a certain amount of days. There will be a separate entry for each day.
| site required | string ATLAS site for which the statistics should be returned |
| host | string Host for which the statistics should be returned. Leave empty for all hosts in the site. |
| key | string Key ('jobs' or 'workers') for which the statistics should be returned. Leave empty for all. |
| days | integer Number of days for which the statistics should be returned. Limits are 1 to 7. |
{- "success": true,
- "message": "string",
- "data": { }
}Get the worker node statistics for a PanDA queue and a certain amount of days. There will be a separate entry for each day.
| panda_queue required | string PanDA queue for which the statistics should be returned |
| host | string Host for which the statistics should be returned. Leave empty for all hosts in the queue. |
| key | string Key ('jobs' or 'workers') for which the statistics should be returned. Leave empty for all. |
| days | integer Number of days for which the statistics should be returned. Limits are 1 to 7. |
{- "success": true,
- "message": "string",
- "data": { }
}Gets all parameters and environment variables.
| **kwargs required | string arbitrary keyword parameters that will be printed out. Each value is whatever the caller sent, not a dict; only str() is ever applied to it |
{- "success": true,
- "message": "string",
- "data": {
- "parameters": { },
- "environment": { }
}
}Gets user attributes as seen by PanDA for debug purposes. Requires a secure connection.
{- "success": true,
- "message": "string",
- "data": {
- "user_dn_raw": "string",
- "user_dn_clean": "string",
- "fqans": [
- { }
], - "is_production_user": true,
- "production_working_groups": [
- { }
], - "primary_working_group": "string"
}
}Retry a given task e.g. in exhausted state. Requires a secure connection without a production role to retry own tasks and with a production role to retry others' tasks.
| task_id required | integer JEDI Task ID |
| new_parameters | object a dictionary with the new parameters for rerunning the task. The new parameters are merged with the existing ones. The parameters are the attributes in the JediTaskSpec object (https://github.com/PanDAWMS/panda-jedi/blob/master/pandajedi/jedicore/JediTaskSpec.py). |
| no_child_retry | boolean if True, the child tasks are not retried. Defaults to False |
| discard_events | boolean if True, events will be discarded. Defaults to False |
| disable_staging_mode | boolean if True, the task skips staging state and directly goes to subsequent state. Defaults to False |
| keep_gshare_priority | boolean if True, the task keeps current gshare and priority. Defaults to False |
| ignore_hard_exhausted | boolean if True, the task ignores the limits for hard exhausted state and can be retried even if it is very faulty. Defaults to False |
{- "task_id": 0,
- "new_parameters": { },
- "no_child_retry": true,
- "discard_events": true,
- "disable_staging_mode": true,
- "keep_gshare_priority": true,
- "ignore_hard_exhausted": true
}{- "success": true,
- "message": "string",
- "data": 0
}Resume a given task. This transitions a paused or throttled task back to its previous active state. Resume can also be used to kick a task in staging state to the next state. Requires a secure connection and production role.
| task_id required | integer JEDI Task ID |
{- "task_id": 0
}{- "success": true,
- "message": "string",
- "data": 0
}Release a given task by skipping iDDS for staging. Requires a secure connection and production role.
| task_id required | integer JEDI Task ID |
{- "task_id": 0
}{- "success": true,
- "message": "string",
- "data": 0
}Reassign a given task to a site, nucleus or cloud - depending on the parameters. Requires a secure connection.
| task_id required | integer JEDI Task ID |
| site | string site name |
| cloud | string cloud name |
| nucleus | string nucleus name |
| mode | string
|
{- "task_id": 0,
- "site": "string",
- "cloud": "string",
- "nucleus": "string",
- "mode": "string"
}{- "success": true,
- "message": "string",
- "data": 0
}Pause a given task. Requires a secure connection and production role.
| task_id required | integer JEDI Task ID |
{- "task_id": 0
}{- "success": true,
- "message": "string",
- "data": 0
}Kill a given task. Requires a secure connection.
| task_id required | integer JEDI Task ID |
| broadcast | boolean broadcast kill command to pilots to kill the jobs |
{- "task_id": 0,
- "broadcast": true
}{- "success": true,
- "message": "string",
- "data": 0
}Kills all unfinished jobs in a task. Requires a secure connection.
| task_id required | integer JEDI task ID |
| code | integer The kill code. Defaults to None.
|
| use_email_as_id | boolean Use the email as ID. Defaults to False. |
{- "task_id": 0,
- "code": 0,
- "use_email_as_id": true
}{- "success": true,
- "message": "string",
- "data": [
- true
]
}Finish a given task. Requires a secure connection.
| task_id required | integer JEDI Task ID |
| soft | boolean soft finish |
| broadcast | boolean broadcast finish command to pilots |
{- "task_id": 0,
- "soft": true,
- "broadcast": true
}{- "success": true,
- "message": "string",
- "data": 0
}Reactivate a given task, i.e. recycle a finished/done task. A reactivated task will generate new jobs and then go to done/finished. Requires a secure connection and production role.
| task_id required | integer JEDI Task ID |
| keep_attempt_nr | boolean keep the original attempt number |
| trigger_job_generation | boolean trigger the job generation |
{- "task_id": 0,
- "keep_attempt_nr": true,
- "trigger_job_generation": true
}{- "success": true,
- "message": "string",
- "data": 0
}Avalanche a given task. This triggers the avalanche for tasks in scouting state or dynamically reconfigures the task to skip over the scouting state. Requires a secure connection and production role.
| task_id required | integer JEDI Task ID |
{- "task_id": 0
}{- "success": true,
- "message": "string",
- "data": 0
}Request to reload the input for a given task. Requires a secure connection and production role.
| task_id required | integer JEDI Task ID |
| ignore_hard_exhausted | boolean ignore the limits for hard exhausted |
{- "task_id": 0,
- "ignore_hard_exhausted": true
}{- "success": true,
- "message": "string",
- "data": 0
}Enables the Jumbo jobs for a given task ID. Requires a secure connection and production role.
| task_id required | integer JEDI task ID |
| jumbo_jobs_total required | integer Total number of jumbo jobs |
| jumbo_jobs_per_site required | integer Number of jumbo jobs per site. Defaults to |
{- "task_id": 0,
- "jumbo_jobs_total": 0,
- "jumbo_jobs_per_site": 0
}{- "success": true,
- "message": "string",
- "data": 0
}Gets a map of the jumbo-job-enabled tasks to their datasets, filtering by the last modification time (now - from_offset to now - to_offset). Requires a secure connection.
| from_offset required | integer
|
| to_offset | integer
|
{- "success": true,
- "message": "string",
- "data": { }
}Enable job cloning for a given task. Requires secure connection and production role.
| jedi_task_id required | integer JEDI Task ID |
| mode | string mode of operation, runonce or storeonce |
| multiplicity | integer number of clones to be created for each target |
| num_sites | 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",
- "data": null
}Disable job cloning for a given task. Requires secure connection and production role.
| jedi_task_id required | integer JEDI Task ID |
{- "jedi_task_id": 0
}{- "success": true,
- "message": "string",
- "data": null
}Increase possible task attempts. Requires secure connection and production role.
| task_id required | integer JEDI Task ID |
| increase required | integer number of attempts to increase |
{- "task_id": 0,
- "increase": 0
}{- "success": true,
- "message": "string",
- "data": 0
}Get the details of a given task. Requires secure connection.
| task_id required | integer JEDI Task ID |
| include_parameters | boolean flag to include task parameter information (Previously fullFlag) |
| include_status | boolean flag to include status information (Previously withTaskInfo) |
{- "success": true,
- "message": "string",
- "data": { }
}Change a task attribute within the list of valid attributes ("ramCount", "wallTime", "cpuTime", "coreCount"). Requires a secure connection and production role.
| task_id required | integer JEDI task ID |
| attribute_name required | string attribute to change |
| value required | integer value to set to the attribute |
{- "task_id": 0,
- "attribute_name": "string",
- "value": 0
}{- "success": true,
- "message": "string",
- "data": null
}Change the modification time for a task to now() + hour_offset. Requires a secure connection and production role.
| task_id required | integer JEDI task ID |
| hour_offset required | integer number of hours to add to the current time. Use a negative value (e.g. -12) to trigger task brokerage. |
{- "task_id": 0,
- "hour_offset": 0
}{- "success": true,
- "message": "string",
- "data": null
}Change the priority of a given task. Requires a secure connection and production role.
| task_id required | integer JEDI task ID |
| priority required | integer new priority for the task |
{- "task_id": 0,
- "priority": 0
}{- "success": true,
- "message": "string",
- "data": null
}Change the split rule for a task by modifying or adding an attribute_name=value pair. Requires a secure connection and production role.
| task_id required | integer JEDI task ID |
| attribute_name required | string split rule attribute to change. The allowed attributes are defined in |
| value required | string value to set to the attribute |
{- "task_id": 0,
- "attribute_name": "string",
- "value": "string"
}{- "success": true,
- "message": "string",
- "data": null
}Get the tasks with modificationtime > since. Requires a secure connection.
| since required | string time in the format |
| dn | string user DN |
| full | boolean flag to include full task information. If |
| min_task_id | integer minimum task ID |
| prod_source_label | string task type (e.g. |
{- "success": true,
- "message": "string",
- "data": { }
}Fetches task IDs for tasks modified since since (max 90-day window), applies optional
field filters, and returns full detail (all JediTaskSpec fields + jobParamsTemplate +
taskParams + input-file progress) for each matching task. The request is always scoped to the
authenticated user (DN from the request certificate) unless userName is explicitly specified in
the filters.
When since is omitted the time-window cap is removed entirely, so matching tasks are
returned regardless of age. This is useful for by-ID / by-reqID lookups (e.g.
filters={"jediTaskID": <id>} or {"reqID": <id>}) of tasks of any age. Because the
request always adds userName to the criteria, the criteria is never empty, so omitting
since is safe.
Filters are split server-side: plain-value patterns (no regex metacharacters) become SQL
equality conditions pushed to the DB; patterns with metacharacters are applied in Python via
re.search on the full task dict returned by get_task_details_json.
| since | string time in the format |
| filters | string JSON-encoded dict of {field: pattern} pairs.
Plain values (no regex metacharacters) become SQL equality conditions.
Regex patterns (containing |
| n_tasks | integer maximum number of task IDs to retrieve (default 500) |
{- "success": true,
- "message": "string",
- "data": [
- { }
]
}Get the files in the datasets associated to a given task. You can filter passing a list of dataset types. The return format is:
[
{
"dataset": {
"name": dataset_name,
"id": dataset_id
},
"files": [
{
"lfn": lfn,
"scope": file_scope,
"id": file_id,
"status": status
},
...
]
},
...
]
Requires a secure connection.
| task_id required | integer JEDI task ID |
| dataset_types | Array of objects list of dataset types, defaults to |
| dataset_only | boolean if True, only return dataset information without files, defaults to False |
{- "success": true,
- "message": "string",
- "data": [
- {
- "dataset": {
- "name": "string",
- "id": 0
}, - "files": [
- { }
]
}
]
}Insert the task parameters to register a task. Requires a secure connection.
| task_parameters required | object Dictionary with all the required task parameters. The parameters are the attributes in the JediTaskSpec object (https://github.com/PanDAWMS/panda-jedi/blob/master/pandajedi/jedicore/JediTaskSpec.py). |
| parent_tid | integer Parent task ID |
{- "task_parameters": { },
- "parent_tid": 0
}{- "success": true,
- "message": "string",
- "data": 0
}Get all task fields together with jobParamsTemplate and taskParams for a given task. The record is read without locking. Requires a secure connection.
| task_id required | integer JEDI task ID |
{- "success": true,
- "message": "string",
- "data": { }
}Resolve the parent task from a given child task and return only the parent detailed information. Requires a secure connection.
| task_id required | integer child JEDI task ID |
{- "success": true,
- "message": "string",
- "data": { }
}Resolves all PanDA job IDs associated with a JEDI task, retrieves their job
descriptions including archive lookup, and returns them. Optionally filters
to only unsuccessful jobs (status failed, cancelled, or closed).
Requires a secure connection.
| task_id required | integer JEDI task ID. |
| unsuccessful_only required | boolean When True, return only failed, cancelled, or closed jobs. Defaults to False. |
{- "success": true,
- "message": "string",
- "data": [
- { }
]
}Submit a PanDA native workflow as a raw request, with the description in a sandbox. This is the endpoint the pandaclient uses (see Client.submit_workflow). The description itself lives in an uploaded sandbox and is downloaded and parsed asynchronously, so nothing about it can be validated here. To submit a description inline instead, with no sandbox, use submit_workflow_description.
| params required | object dictionary or JSON of parameters of the raw request |
{- "params": { }
}{- "success": true,
- "message": "string",
- "data": {
- "workflow_id": 0
}
}Deprecated alias of submit_workflow, kept for pandaclient versions that still target this path.
| params required | object dictionary or JSON of parameters of the raw request |
{- "params": { }
}{- "success": true,
- "message": "string",
- "data": {
- "workflow_id": 0
}
}Submit a PanDA native workflow from an already-resolved workflow definition.
NOTE: for testing only. A workflow definition is the engine's internal, fully-resolved form, normally produced by the server itself when it parses a submitted description. Nothing outside tests should call this; use submit_workflow to submit a raw request with a sandbox, or submit_workflow_description to submit a workflow description inline.
| workflow_definition required | object dictionary of workflow definition |
{- "workflow_definition": { }
}{- "success": true,
- "message": "string",
- "data": {
- "workflow_id": 0
}
}Submit a PanDA native workflow described inline, without a sandbox. The description uses the native workflow schema (name, inputs, outputs, steps, options) and is passed in the request body rather than in a sandbox, so a step carrying raw task parameters needs nothing uploaded. The description is validated synchronously, so that an authoring mistake is reported here, while parsing into a workflow definition stays asynchronous as for the other submission paths.
| workflow_description required | object dictionary or JSON of the workflow description |
{- "workflow_description": { }
}{- "success": true,
- "message": "string",
- "data": {
- "workflow_id": 0
}
}Report the status of a workflow together with the spread of its steps across statuses. The step relation query answers about the parts of a workflow; this answers about the workflow itself, which is what a consumer polling after submission needs. Requires a secure connection.
| workflow_id required | integer ID of the workflow to report on |
{- "success": true,
- "message": "string",
- "data": {
- "workflow_id": 0,
- "name": "string",
- "status": "string",
- "reason": "string",
- "submitted_as": "string",
- "user": "string",
- "parent_id": 0,
- "creation_time": "string",
- "start_time": "string",
- "end_time": "string",
- "n_steps": 0,
- "step_status_counts": { }
}
}Report a workflow whole: its own status, its steps with how they relate and how far each has got, and the data passing through it. The separate status and relation queries each answer part of this; a client showing a workflow wants all of it, and one answer spares it a round trip per task. Requires a secure connection.
| workflow_id required | integer ID of the workflow to report on |
{- "success": true,
- "message": "string",
- "data": { }
}Report which step of a workflow feeds which. The workflow engine is data-driven: a step starts because its inputs are ready, not because a parent step finished, so it holds no step-to-step edge of its own. This derives them from what it does hold, and answers for a running workflow as readily as for a finished one. Requires a secure connection.
| workflow_id required | integer ID of the workflow to report on |
{- "success": true,
- "message": "string",
- "data": {
- "workflow_id": 0,
- "steps": [
- { }
]
}
}Report which JEDI task of a workflow feeds which. The task-level view of get_step_relations, for consumers that model a chain as related tasks. A step running something other than a JEDI task is collapsed, so the relation passes through it rather than leaving a gap, and a step running a nested workflow is replaced by the tasks inside it. A step not yet submitted is reported with task_id None, so that a task whose producer has not started is not mistaken for one with no producer. Requires a secure connection.
Give either workflow_id, for a whole chain, or task_id, to enter at a task without knowing which workflow it belongs to.
| workflow_id | integer ID of the workflow to report on. Give this or task_id |
| task_id | integer JEDI task ID to report the workflow of. Give this or workflow_id |
{- "success": true,
- "message": "string",
- "data": {
- "workflow_id": 0,
- "tasks": [
- { }
]
}
}