PanDA API (1.0.0)

Download OpenAPI specification:

Protocol: we generally require communication over HTTPS. The server will not accept HTTP requests unless explicitly mentioned.

HTTP methods:

  • GET: Retrieve data from the server. Parameters have to be sent in the URL. List parameters are passed by repeating the parameter name (e.g. ?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"],
)
  • PUT: Update data on the server. Parameters have to be sent in the body in json encoded format. When the client wants to gzip the data, the content encoding has to be set accordingly.
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"],
)

Response formats:

The return codes are usually specified with each API function, but in general:

  • 200: Function called correctly and response will be 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:
    • Wrong parameters or the JSON could not be decoded.
    • The function was called using the wrong HTTP method (e.g. GET instead of PUT).
    • The function expects authentication (certificate/token) and it was not provided.
    • The function expects production role and it was not provided.
    • Caught exceptions when interacting with the database.

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." }
  • 403: Forbidden. The client called a forbidden function or there was an authentication issue. The response will use Content-type: text/plain.
  • 500: Server crashed calling the method. The response will use Content-type: text/plain.
  • 503: The server is overloaded. The call did not reach PanDA and the response comes from directly httpd.

async_process

Operations related to async_process

Submit a grep request

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.

Request Body schema: application/json
required
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}

  • records: in the order of the file, each {"offset": int, "head": bool, "lines": [str, ...], "cut": bool}. offset is the byte offset in the file, decompressed for a .gz, where the first line given starts, the same in any request until the file is rotated. head is false when that line matched within the lines of a record whose first line did not match, and so is not the start of its record. cut is true when the record has more lines than were given, which sets truncated too. lines come without line breaks
  • window: for tail_bytes, since or until, the bytes searched: {"offset": int, "first_stamp": str or None, "end": int or None, "end_stamp": str or None, "cut": bool}. offset is where the search started, and first_stamp the time stamp of the first line from there that starts with one. end is where it stopped, the start of a record that was not searched, and end_stamp the time stamp of that record; both are null when the search ran to the end of the file as it was when read, as it always does for tail_bytes. Every record starting at or after offset and before end was searched whole. cut is true when a time window was cut at 1 GiB, so that it covers less than was asked: ask again with since set to end_stamp. A cut window does not set truncated, which keeps meaning that the result over the bytes searched is not whole, as it calls for asking differently rather than further. null without tail_bytes, since or until, or from a machine whose processor predates them Defaults to False, the matching lines alone as they are in the file
since
required
string

search only the bytes of the file that hold the records at or after this time, in UTC, e.g. 2026-11-02 13:02:12 (ISO 8601 is accepted, and a time with a UTC offset is converted). The time stamps of the logs are in UTC. The file is bisected on its time stamps, so a narrow window of a log of many gigabytes reads a few megabytes. The bytes searched start at a record stamped at least 60 s before since, for records written out of order. That covers the order within the file only: a difference between the clock the time comes from and the machine's clock is for the caller to widen the window by. Only for a plain file, together with whole_records, and not with tail_bytes. Without until, the search runs to the end of the file. A window of more than 1 GiB is cut, as window tells

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

Responses

Request samples

Content type
application/json
{
  • "log_filename": "string",
  • "pattern": "string",
  • "fixed_strings": [
    ],
  • "service_name": "string",
  • "machine_name": "string",
  • "max_matches": 0,
  • "tail_bytes": 0,
  • "whole_records": true,
  • "since": "string",
  • "until": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Submit a log list request

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.

Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "service_name": "string",
  • "machine_name": "string",
  • "log_names": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Submit a read of the database

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.

Request Body schema: application/json
required
queries
required
Array of objects

the queries, at most 10, e.g. [{"tables": ["jobsActive4", "jobsArchived4"], "where": [["jediTaskID", "=", 123]], "columns": ["PandaID", "jobStatus"]}]

Responses

Request samples

Content type
application/json
{
  • "queries": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Submit sleep+echo request

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").

Request Body schema: application/json
required
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)

Responses

Request samples

Content type
application/json
{
  • "service_name": "string",
  • "message": "string",
  • "seconds": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get async request result

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.

query Parameters
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

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

credential_management

Operations related to credential_management

Set user secrets

Set a key-value pair to store in PanDA. Requires a secure connection.

Request Body schema: application/json
required
key
required
string

Key to reference the secret

value
required
string

Value of the secret

Responses

Request samples

Content type
application/json
{
  • "key": "string",
  • "value": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Get user secrets

Get the secrets for a user identified by a list of keys. Requires a secure connection.

Request Body schema: application/json
required
keys
Array of strings

List of keys to reference the secrets to retrieve

Responses

Request samples

Content type
application/json
{
  • "keys": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": "string"
}

Get key pair

This function retrieves the distinguished name (DN) from the request and uses it to get a key pair. Requires a secure connection.

query Parameters
public_key_name
required
string

The name of the public key.

private_key_name
required
string

The name of the private key.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get proxy

Get the x509 proxy certificate for a user with a role. Requires a secure connection.

query Parameters
role
string

The role of the user. Defaults to None.

dn
string

The distinguished name of the user. Defaults to None.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get access token

Get the OAuth access token for the specified client. Requires a secure connection.

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get token key

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.

query Parameters
client_name
required
string

The name of the client requesting the token key

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Change destination of staging

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 Body schema: application/json
required
request_id
required
integer

request_id of the staging request, e.g. 123

dataset
required
string

dataset name of the staging request in the format of Rucio DID, e.g. "mc20_13TeV:mc20_13TeV.700449.Sh_2211_Wtaunu_mW_120_ECMS_BFilter.merge.AOD.e8351_s3681_r13144_r13146_tid36179107_00"

Responses

Request samples

Content type
application/json
{
  • "request_id": 0,
  • "dataset": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Change source of staging

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 Body schema: application/json
required
request_id
required
integer

request_id of the staging request, e.g. 123

dataset
required
string

dataset name of the staging request in the format of Rucio DID, e.g. "mc20_13TeV:mc20_13TeV.700449.Sh_2211_Wtaunu_mW_120_ECMS_BFilter.merge.AOD.e8351_s3681_r13144_r13146_tid36179107_00"

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

Responses

Request samples

Content type
application/json
{
  • "request_id": 0,
  • "dataset": "string",
  • "cancel_fts": true,
  • "change_src_expr": true,
  • "source_rse": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Force to staging

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 Body schema: application/json
required
request_id
required
integer

request_id of the staging request, e.g. 123

dataset
required
string

dataset name of the staging request in the format of Rucio DID, e.g. "mc20_13TeV:mc20_13TeV.700449.Sh_2211_Wtaunu_mW_120_ECMS_BFilter.merge.AOD.e8351_s3681_r13144_r13146_tid36179107_00"

Responses

Request samples

Content type
application/json
{
  • "request_id": 0,
  • "dataset": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Retire unused staging request

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 Body schema: application/json
required
request_id
required
integer

request_id of the staging request, e.g. 123

dataset
required
string

dataset name of the staging request in the format of Rucio DID, e.g. "mc20_13TeV:mc20_13TeV.700449.Sh_2211_Wtaunu_mW_120_ECMS_BFilter.merge.AOD.e8351_s3681_r13144_r13146_tid36179107_00"

Responses

Request samples

Content type
application/json
{
  • "request_id": 0,
  • "dataset": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Submit async request to change destination of staging

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 Body schema: application/json
required
request_id
required
integer

request_id of the staging request, e.g. 123

dataset
required
string

dataset name of the staging request in the format of Rucio DID, e.g. "mc20_13TeV:mc20_13TeV.700449.Sh_2211_Wtaunu_mW_120_ECMS_BFilter.merge.AOD.e8351_s3681_r13144_r13146_tid36179107_00"

Responses

Request samples

Content type
application/json
{
  • "request_id": 0,
  • "dataset": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Submit async request to change source of staging

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 Body schema: application/json
required
request_id
required
integer

request_id of the staging request, e.g. 123

dataset
required
string

dataset name of the staging request in the format of Rucio DID, e.g. "mc20_13TeV:mc20_13TeV.700449.Sh_2211_Wtaunu_mW_120_ECMS_BFilter.merge.AOD.e8351_s3681_r13144_r13146_tid36179107_00"

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

Responses

Request samples

Content type
application/json
{
  • "request_id": 0,
  • "dataset": "string",
  • "cancel_fts": true,
  • "change_src_expr": true,
  • "source_rse": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Submit async request to force to staging

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 Body schema: application/json
required
request_id
required
integer

request_id of the staging request, e.g. 123

dataset
required
string

dataset name of the staging request in the format of Rucio DID, e.g. "mc20_13TeV:mc20_13TeV.700449.Sh_2211_Wtaunu_mW_120_ECMS_BFilter.merge.AOD.e8351_s3681_r13144_r13146_tid36179107_00"

Responses

Request samples

Content type
application/json
{
  • "request_id": 0,
  • "dataset": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Submit async request to retire unused staging request

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 Body schema: application/json
required
request_id
required
integer

request_id of the staging request, e.g. 123

dataset
required
string

dataset name of the staging request in the format of Rucio DID, e.g. "mc20_13TeV:mc20_13TeV.700449.Sh_2211_Wtaunu_mW_120_ECMS_BFilter.merge.AOD.e8351_s3681_r13144_r13146_tid36179107_00"

Responses

Request samples

Content type
application/json
{
  • "request_id": 0,
  • "dataset": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

event

Operations related to event

Get available event range count

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.

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Get event range statuses

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.

query Parameters
job_task_ids
required
integer

json encoded string with JEDI task ID + PanDA job ID pairs, in the format [{"task_id": <task>, "panda_id": <job>}, ...]

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Acquire event ranges

Acquires a list of event ranges with a given PandaID for execution. Requires a secure connection and production role.

Request Body schema: application/json
required
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.

Responses

Request samples

Content type
application/json
{
  • "job_id": "string",
  • "jobset_id": "string",
  • "task_id": 0,
  • "n_ranges": 0,
  • "timeout": 0,
  • "scattered": true,
  • "segment_id": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Update single event range

Updates the status of a specific event range. Requires a secure connection and production role.

Request Body schema: application/json
required
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.

Responses

Request samples

Content type
application/json
{
  • "event_range_id": "string",
  • "event_range_status": "string",
  • "core_count": 0,
  • "cpu_consumption_time": 0,
  • "object_store_id": 0,
  • "timeout": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Update event ranges

Updates the event ranges in bulk. Requires a secure connection and production role.

Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "event_ranges": "string",
  • "timeout": 0,
  • "version": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

file_server

Operations related to file_server

Upload a JEDI log file

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.

Request Body schema: application/json
required
file
required
string

werkzeug.FileStorage object to be uploaded.

Responses

Request samples

Content type
application/json
{
  • "file": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": "string"
}

Update a JEDI log file

Updates a JEDI log file, appending more content at the end of the file. Requires a secure connection and production role.

Request Body schema: application/json
required
file
required
string

werkzeug.FileStorage object to be updated.

Responses

Request samples

Content type
application/json
{
  • "file": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Download JEDI log file

Downloads the JEDI log file, if required at a particular offset.

Request Body schema: application/json
required
log_name
required
string

log file name

offset
required
integer

offset in the file

Responses

Request samples

Content type
application/json
{
  • "log_name": "string",
  • "offset": 0
}

Upload a cache file

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.

Request Body schema: application/json
required
file
required
string

werkzeug.FileStorage object to be uploaded.

Responses

Request samples

Content type
application/json
{
  • "file": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Touch file in the cache directory.

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.

Request Body schema: application/json
required
file_name
required
string

file name to be deleted

Responses

Request samples

Content type
application/json
{
  • "file_name": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Delete cache file

Deletes a file from the cache directory. Currently a dummy method. Requires a secure connection.

Request Body schema: application/json
required
file_name
required
string

file name to be deleted

Responses

Request samples

Content type
application/json
{
  • "file_name": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Register cache file

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.

Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "user_name": "string",
  • "file_name": "string",
  • "file_size": 0,
  • "checksum": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Validate cache file

Validates a cache file owned by the caller by checking the file metadata that was registered in the database. Requires a secure connection.

Request Body schema: application/json
required
file_size
required
integer

file size

checksum
required
integer

checksum

Responses

Request samples

Content type
application/json
{
  • "file_size": 0,
  • "checksum": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Upload a HPO checkpoint file

Uploads a HPO checkpoint file to the server. Requires a secure connection.

Request Body schema: application/json
required
file
required
string

werkzeug.FileStorage object to be uploaded.

Responses

Request samples

Content type
application/json
{
  • "file": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": "string"
}

Delete a HPO checkpoint file.

Deletes a HPO checkpoint file from the server. Requires a secure connection.

Request Body schema: application/json
required
task_id
required
string

JEDI task ID

sub_id
required
string

sub ID.

Responses

Request samples

Content type
application/json
{
  • "task_id": "string",
  • "sub_id": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Upload file recovery request

Upload request to recover lost files. Either task_id or dataset needs to be specified. Requires a secure connection.

Request Body schema: application/json
required
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.

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "dry_run": true,
  • "dataset": "string",
  • "files": [
    ],
  • "no_child_retry": true,
  • "resurrect_datasets": true,
  • "force": true,
  • "reproduce_parent": true,
  • "reproduce_upto_nth_gen": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Upload workflow request to the server.

Uploads a workflow request to the server. The request can be processed synchronously or asynchronously. Requires a secure connection.

Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "data": "string",
  • "dry_run": true,
  • "sync": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Upload event picking request to the server.

Uploads an event picking request to the server. Requires a secure connection.

Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "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
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

harvester

Operations related to harvester

Update workers.

Update the details for a list of workers. Requires a secure connection.

Request Body schema: application/json
required
harvester_id
required
string

harvester id, e.g. harvester_central_A

workers
required
Array of objects

list of worker dictionaries that describe the fields of a pandaserver/taskbuffer/WorkerSpec object.

[{"workerID": 1, "batchID": 1, "queueName": "queue1", "status": "running",
"computingSite": "site1", "nCore": 1, "nodeID": None,
"submitTime": "02-NOV-24 00:02:18", "startTime": "02-NOV-24 00:02:18", "endTime": None,
"jobType": "managed", "resourceType": "SCORE", "nativeExitCode": None, "nativeStatus": None,
"diagMessage": None, "nJobs": 1, "computingElement": "ce1", "syncLevel": 0,
"submissionHost": "submissionhost1", "harvesterHost": "harvesterhost1",
"errorCode": None, "minRamCount": 2000},...]

Responses

Request samples

Content type
application/json
{
  • "harvester_id": "string",
  • "workers": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Update harvester service metrics.

Update the service metrics for a harvester instance. Requires a secure connection.

Request Body schema: application/json
required
harvester_id
required
string

harvester id, e.g. harvester_central_A

metrics
required
Array of objects

list of triplets [[timestamp, host, metrics_json],[timestamp, host, metrics_json]...], all three of them strings. The metrics are json encoded, as they are stored in the database like that. The order is the one DBProxy.updateServiceMetrics reads and the one the example below builds.

harvester_host = "harvester_host.cern.ch"
creation_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")
metric = {
    "rss_mib": 2737.36,
    "memory_pc": 39.19,
    "cpu_pc": 15.23,
    "volume_data_pc": 20.0,
    "cert_lifetime": {
        "/data/atlpan/proxy/x509up_u25606_prod": 81,
        "/data/atlpan/proxy/x509up_u25606_pilot": 81,
        "/cephfs/atlpan/harvester/proxy/x509up_u25606_prod": 96,
        "/cephfs/atlpan/harvester/proxy/x509up_u25606_pilot": 96,
    },
}

# DBProxy expects the metrics in json format and stores them directly in the database
metrics = [[creation_time, harvester_host, json.dumps(metric)]]

Responses

Request samples

Content type
application/json
{
  • "harvester_id": "string",
  • "metrics": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Add harvester dialog messages.

Add messages for a harvester instance. Requires a secure connection.

Request Body schema: application/json
required
harvester_id
required
string

harvester id, e.g. harvester_central_A

dialogs
required
Array of objects

list of dialog dictionaries, e.g.

dialogs = [{
    "diagID": 1,
    "moduleName": "test_module",
    "identifier": "test identifier",
    "creationTime": datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f"),
    "messageLevel": "INFO",
    "diagMessage": "test message",
    },...]

Responses

Request samples

Content type
application/json
{
  • "harvester_id": "string",
  • "dialogs": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Heartbeat for harvester.

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.

Request Body schema: application/json
required
harvester_id
required
string

harvester id, e.g. harvester_central_A

data
required
object

metadata dictionary to be updated in the PanDA database, e.g. data = {"startTime": <start time>, "sw_version": <release version>, "commit_stamp": <commit timestamp>}

Responses

Request samples

Content type
application/json
{
  • "harvester_id": "string",
  • "data": { }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Get the current worker ID.

Retrieve the current worker ID. Requires a secure connection.

query Parameters
harvester_id
required
string

harvester id, e.g. harvester_central_A

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Get worker statistics.

Get statistics for all the workers managed across the Grid. Requires a secure connection.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Report worker statistics.

Report statistics for the workers managed by a harvester instance at a PanDA queue. Requires a secure connection.

Request Body schema: application/json
required
harvester_id
required
string

harvester id, e.g. harvester_central_A

panda_queue
required
string

Name of the PanDA queue, e.g. CERN.

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.

json.dumps({"user": {"SCORE": {"running": 1, "submitted": 1}}, "managed": {"MCORE": {"running": 1, "submitted": 1}}})

Responses

Request samples

Content type
application/json
{
  • "harvester_id": "string",
  • "panda_queue": "string",
  • "statistics": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Get harvester commands.

Retrieves the commands for a specified harvester instance. Requires a secure connection and production role.

Request Body schema: application/json
required
harvester_id
required
string

harvester id, e.g. harvester_central_A

n_commands
required
integer

The number of commands to retrieve, e.g. 10.

timeout
integer

The timeout value. Defaults to 30.

Responses

Request samples

Content type
application/json
{
  • "harvester_id": "string",
  • "n_commands": 0,
  • "timeout": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Acknowledge harvester commands.

Acknowledges the list of command IDs in the PanDA database. Requires a secure connection and production role.

Request Body schema: application/json
required
command_ids
required
Array of objects

A list of command IDs to acknowledge, e.g. [1, 2, 3, 4,...].

timeout
integer

The timeout value. Defaults to 30.

Responses

Request samples

Content type
application/json
{
  • "command_ids": [
    ],
  • "timeout": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Add sweep command for harvester.

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.

Request Body schema: application/json
required
panda_queue
required
string

Name of the PanDA queue, e.g. CERN.

status_list
required
Array of objects

list of worker statuses to be considered, e.g. ['submitted', 'running']

ce_list
required
Array of objects

list of the Computing Elements to be considered, e.g. ['ce1.cern.ch', 'ce2.cern.ch']

submission_host_list
required
Array of objects

list of the harvester submission hosts to be considered, e.g. ['submission_host1.cern.ch', 'submission_host2.cern.ch']

Responses

Request samples

Content type
application/json
{
  • "panda_queue": "string",
  • "status_list": [
    ],
  • "ce_list": [
    ],
  • "submission_host_list": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Set target slots.

Set the target number of slots for a PanDA queue, when you want to build up job pressure. Requires secure connection and production role.

Request Body schema: application/json
required
panda_queue
required
string

Name of the PanDA queue, e.g. CERN.

slots
required
integer

Number of slots to set, e.g. 10000.

global_share
string

Global share the slots apply to. Optional - by default it applies to the whole queue. E.g. User Analysis

resource_type
string

Resource type the slots apply to. Optional - by default it applies to the whole queue. E.g. SCORE or MCORE.

expiration_date
string

The expiration date of the slots. Optional - by default it applies indefinitely.

Responses

Request samples

Content type
application/json
{
  • "panda_queue": "string",
  • "slots": 0,
  • "global_share": "string",
  • "resource_type": "string",
  • "expiration_date": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

idds

Operations related to idds

job

Operations related to job

Get status of a job.

Gets the status of a job and command to the pilot if any. Requires a secure connection.

query Parameters
job_ids
required
Array of integers

list of PanDA job IDs.

timeout
integer

The timeout value. Defaults to 60.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Get description of a job.

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.

query Parameters
job_ids
required
Array of integers

List of PanDA job IDs.

timeout
integer

The timeout value. Defaults to 60.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Get description of a job.

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.

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Get status history of jobs

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.

query Parameters
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. 2026-10-12 14:30:45 (ISO 8601 is accepted)

until
string

read only the changes before this time, in UTC, in the same format

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Get datasets by name

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.

query Parameters
names
required
Array of strings

names of the datasets

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Get execution script for a job.

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>).

query Parameters
job_id
required
integer

PanDA job ID

days
integer

Number of days to look back in the archive tables. Defaults to 30.

Responses

Get metadata for analysis jobs

Gets the metadata from the metatable for analysis jobs in finished status. Requires a secure connection.

query Parameters
task_id
required
integer

JEDI task ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Kill the jobs

Kills the jobs with the given PanDA IDs. Requires a secure connection.

Request Body schema: application/json
required
job_ids
required
Array of objects

List of PanDA job IDs

code
integer

The kill code. Defaults to None.

code
2: expire
3: aborted
4: expire in waiting
7: retry by server
8: rebrokerage
9: force kill
10: fast rebrokerage in overloaded PQ
50: kill by JEDI
51: reassigned by JEDI
52: force kill by JEDI
55: killed since task is (almost) done
60: workload was terminated by the pilot without actual work
91: kill user jobs with prod role
99: force kill user jobs with prod role
use_email_as_id
boolean

Use the email as ID. Defaults to False.

kill_options
Array of objects

Defaults to []. Possible options are: keepUnmerged, jobSubStatus=xyz

Responses

Request samples

Content type
application/json
{
  • "job_ids": [
    ],
  • "code": 0,
  • "use_email_as_id": true,
  • "kill_options": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Reassign a list of jobs

Reassigns a list of jobs. Requires a secure connection.

Request Body schema: application/json
required
job_ids
required
Array of objects

List of PanDA job IDs

Responses

Request samples

Content type
application/json
{
  • "job_ids": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Set a pilot command

Sets a command to the pilot for a job. Requires a secure connection and production role.

Request Body schema: application/json
required
job_id
required
integer

PanDA job ID

command
required
string

The command for the pilot, e.g. tobekilled

Responses

Request samples

Content type
application/json
{
  • "job_id": 0,
  • "command": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Set the debug mode

Sets the debug mode for a job. Requires a secure connection and production role.

Request Body schema: application/json
required
job_id
required
integer

PanDA job ID

mode
required
boolean

True to set debug mode, False to unset debug mode

Responses

Request samples

Content type
application/json
{
  • "job_id": 0,
  • "mode": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Submit jobs

Sets the debug mode for a job. Requires a secure connection.

Request Body schema: application/json
required
jobs
required
string

JSON string with a list of job specs

Responses

Request samples

Content type
application/json
{
  • "jobs": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

metaconfig

Operations related to metaconfig

Get banned users

Gets the list of banned users from the system (users with status=disabled in ATLAS_PANDAMETA.users). Requires a secure connection.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Get site specs

Gets a dictionary of site specs. By default analysis sites are returned. Requires a secure connection.

query Parameters
type
string

type of site as defined in CRIC (currently unified, production, analysis, all). Defaults to analysis.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Get resource types

Gets the resource types (SCORE, MCORE, etc.) together with their definitions. Requires a secure connection and production role.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

pilot

Operations related to pilot

Acquire jobs

Acquire jobs for the pilot. The jobs are reserved, the job status is updated and the jobs are returned. Requires a secure connection.

Request Body schema: application/json
required
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 None.

disk_space
integer

Disk space limit for the job. Optional and defaults to None.

prod_source_label
string

Prodsourcelabel, e.g. user, managed, unified... Optional and defaults to None.

node
string

Identifier of the worker node/slot. Optional and defaults to None.

computing_element
string

Computing element. Optional and defaults to None.

prod_user_id
string

User ID of the job. Optional and defaults to None.

get_proxy_key
boolean

Flag to request a proxy key.Optional and defaults to None.

task_id
integer

JEDI task ID of the job. Optional and defaults to None.

n_jobs
integer

Number of jobs for bulk requests. Optional and defaults to None.

background
boolean

Background flag. Optional and defaults to None.

resource_type
string

Resource type of the job, e.g. SCORE, MCORE,.... Optional and defaults to None.

harvester_id
string

Harvester ID, used to update the worker entry in the DB. Optional and defaults to None.

worker_id
integer

Worker ID, used to update the worker entry in the DB. Optional and defaults to None.

scheduler_id
string

Scheduler, e.g. harvester ID. Optional and defaults to None.

job_type
string

Job type, e.g. user, unified, ... This is necessary on top of the prodsourcelabel to disambiguate the cases of test jobs that can be production or analysis. Optional and defaults to None.

via_topic
boolean

Topic for message broker. Optional and defaults to None.

remaining_time
integer

Remaining walltime. Optional and defaults to None.

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 gpus key contains the list of GPUs, using the same key names as update_worker_node_gpu, e.g. {"gpus": [{"vendor": "NVIDIA", "model": "NVIDIA A100-SXM4-40GB", "vram": 40960, "architecture": "Ampere", "framework_version": "12.4", "driver_version": "575.57.08"}]}. An empty gpus list means that the worker node has no GPU, while an absent gpus key means that the worker node doesn't report GPU information, in which case GPU requirements are not checked. Optional and defaults to None.

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 container_name equals it are returned, so such a worker never acquires a job it cannot run. A worker that can run any image omits it. Optional and defaults to None.

Responses

Request samples

Content type
application/json
{
  • "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"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get job status

Gets the status for a list of jobs. Requires a secure connection.

query Parameters
job_ids
required
Array of objects

list of job IDs.

timeout
integer

The timeout value. Defaults to 60.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Update job

Updates the details for a job, stores the metadata and excerpts from the pilot log. Requires a secure connection and production role.

Request Body schema: application/json
required
job_id
required
integer

PanDA job ID

job_status
string

Job status

job_sub_status
string

Job sub status. Optional, defaults to None

start_time
string

Job start time in format "%Y-%m-%d %H:%M:%S". Optional, defaults to None

end_time
string

Job end time in format "%Y-%m-%d %H:%M:%S". Optional, defaults to None

pilot_timing
string

String with pilot timings. Optional, defaults to None

site_name
string

PanDA queue name. Optional, defaults to None

node
string

Identifier for worker node/slot. Optional, defaults to None

scheduler_id
string

Scheduler ID, such as harvester instance. Optional, defaults to None

pilot_id
string

Pilot ID. Optional, defaults to None

batch_id
string

Batch ID. Optional, defaults to None

trans_exit_code
integer

Transformation exit code. Optional, defaults to None

pilot_error_code
integer

Pilot error code. Optional, defaults to None

pilot_error_diag
string

Pilot error message. Optional, defaults to None

exe_error_code
integer

Execution error code. Optional, defaults to None

exe_error_diag
string

Execution error message. Optional, defaults to None

n_events
integer

Number of events. Optional, defaults to None

n_input_files
integer

Number of input files. Optional, defaults to None

attempt_nr
integer

Job attempt number. Optional, defaults to None

cpu_consumption_time
integer

CPU consumption time. Optional, defaults to None

cpu_consumption_unit
string

CPU consumption unit, being used for updating some CPU details. Optional, defaults to None

cpu_conversion_factor
number

CPU conversion factor. Optional defaults to None

core_count
integer

Number of cores of the job. Optional, defaults to None

mean_core_count
integer

Mean core count. Optional, defaults to None

max_rss
integer

Measured max RSS memory. Optional, defaults to None

max_vmem
integer

Measured max Virtual memory. Optional, defaults to None

max_swap
integer

Measured max swap memory. Optional, defaults to None

max_pss
integer

Measured max PSS memory. Optional, defaults to None

avg_rss
integer

Measured average RSS. Optional, defaults to None

avg_vmem
integer

Measured average Virtual memory.Optional, defaults to None

avg_swap
integer

Measured average swap memory. Optional, defaults to None

avg_pss
integer

Measured average PSS. Optional, defaults to None

tot_rchar
integer

Measured total read characters. Optional, defaults to None

tot_wchar
integer

Measured total written characters. Optional, defaults to None

tot_rbytes
integer

Measured total read bytes. Optional, defaults to None

tot_wbytes
integer

Measured total written bytes. Optional, defaults to None

rate_rchar
integer

Measured rate for read characters. Optional, defaults to None

rate_wchar
integer

Measured rate for written characters. Optional, defaults to None

rate_rbytes
integer

Measured rate for read bytes. Optional, defaults to None

rate_wbytes
integer

Measured rate for written bytes. Optional, defaults to None

corrupted_files
string

List of corrupted files in comma separated format. Optional, defaults to None

cpu_architecture_level
string

CPU architecture level (e.g. x86_64-v3). Optional, defaults to None

grid
string

Grid type. Optional, defaults to None

source_site
string

Source site name. Optional, defaults to None

destination_site
string

Destination site name. Optional, defaults to None

job_metrics
string

Job metrics. Optional, defaults to None

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

Responses

Request samples

Content type
application/json
{
  • "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
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Update jobs in bulk

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.

Request Body schema: application/json
required
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 update_job.

harvester_id
string

Harvester ID. Optional, defaults to None.

Responses

Request samples

Content type
application/json
{
  • "job_list": [
    ],
  • "harvester_id": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Update worker status

Updates the status of a worker with the information seen by the pilot. Requires a secure connection and production role.

Request Body schema: application/json
required
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.

Responses

Request samples

Content type
application/json
{
  • "worker_id": "string",
  • "harvester_id": "string",
  • "status": "string",
  • "timeout": 0,
  • "node_id": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Update worker node

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.

Request Body schema: application/json
required
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 slot@worker_node.example.com, the slot ID will be parsed out.

cpu_model
required
string

CPU model, e.g. AMD EPYC 7351.

panda_queue
string

PanDA queue the worker node is associated to. Optional, defaults to None.

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 None.

n_sockets
integer

Number of sockets. Optional, defaults to None.

cores_per_socket
integer

Number of cores per socket. Optional, defaults to None.

threads_per_core
integer

Number of threads per core. When SMT is disabled, this is 1. Otherwise a number > 1. Optional, defaults to None.

cpu_architecture
string

CPU architecture, e.g. x86_64. Optional, defaults to None.

cpu_architecture_level
string

CPU architecture level, e.g. x86-64-v3. Optional, defaults to None.

clock_speed
number

Clock speed in MHz. Optional, defaults to None.

total_memory
integer

Total memory in MB. Optional, defaults to None.

total_local_disk
integer

Total disk space in GB. Optional, defaults to None.

timeout
integer

The timeout value. Defaults to 60.

Responses

Request samples

Content type
application/json
{
  • "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
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Update GPUs for a worker node

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.

Request Body schema: application/json
required
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 slot@worker_node.example.com, the slot ID will be parsed out.

vendor
required
string

GPU vendor, e.g. NVIDIA.

model
required
string

GPU model, e.g. A100 80GB.

count
required
integer

Number of GPUs of this type in the worker node.

vram
integer

VRAM memory in MB. Defaults to None.

architecture
string

GPU architecture, e.g. Tesla, Ampere... Defaults to None.

framework
string

Driver framework available, e.g. CUDA. Defaults to None.

framework_version
string

Version of the driver framework, e.g. 12.2. Defaults to None.

driver_version
string

Version of the driver, e.g. 575.51.03. Defaults to None

timeout
integer

The timeout value. Defaults to 60.

Responses

Request samples

Content type
application/json
{
  • "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
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Update pilot attributes

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.

Request Body schema: application/json
required
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.

Responses

Request samples

Content type
application/json
{
  • "job_id": 0,
  • "pilot_version": "string",
  • "pilot_attributes": { },
  • "timeout": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

statistics

Operations related to statistics

Job statistics by cloud.

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.

query Parameters
type
string

can be "analysis" or "production". Defaults to "production" when not provided.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Production job statistics by cloud and processing type.

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.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Active job statistics by site

Get the active (not in a final state) job statistics by site. Used by Harvester. Requires a secure connection.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Active job detailed statistics by site, resource_type and prodsourcelabel

Get the active (not in a final state) job statistics by site, resource_type and prodsourcelabel. Used by Harvester.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Job statistics by site and resource type

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.

query Parameters
time_window
integer

time window in minutes for the statistics (affects only archived jobs)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Job statistics by site, global share and resource type

Get the job statistics by computing site (PanDA queue), global share 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.

query Parameters
time_window
integer

time window in minutes for the statistics (affects only archived jobs)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Worker node statistics for a site

Get the worker node statistics for a site and a certain amount of days. There will be a separate entry for each day.

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Worker node statistics for a PanDA queue

Get the worker node statistics for a PanDA queue and a certain amount of days. There will be a separate entry for each day.

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

system

Operations related to system

Get attributes

Gets all parameters and environment variables.

query Parameters
**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

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get VOMS attributes

Gets the VOMS attributes (i.e. the ones starting with GRST) in sorted order. Requires a secure connection.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Get user attributes

Gets user attributes as seen by PanDA for debug purposes. Requires a secure connection.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Is alive

Check if the server is alive. Basic function for the health check used in SLS monitoring.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

task

Operations related to task

Task retry

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.

Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "new_parameters": { },
  • "no_child_retry": true,
  • "discard_events": true,
  • "disable_staging_mode": true,
  • "keep_gshare_priority": true,
  • "ignore_hard_exhausted": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Task resume

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.

Request Body schema: application/json
required
task_id
required
integer

JEDI Task ID

Responses

Request samples

Content type
application/json
{
  • "task_id": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Task release

Release a given task by skipping iDDS for staging. Requires a secure connection and production role.

Request Body schema: application/json
required
task_id
required
integer

JEDI Task ID

Responses

Request samples

Content type
application/json
{
  • "task_id": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Task reassign

Reassign a given task to a site, nucleus or cloud - depending on the parameters. Requires a secure connection.

Request Body schema: application/json
required
task_id
required
integer

JEDI Task ID

site
string

site name

cloud
string

cloud name

nucleus
string

nucleus name

mode
string

kill (kills all jobs, default), soft (kills queued jobs) or nokill (doesn't kill jobs)

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "site": "string",
  • "cloud": "string",
  • "nucleus": "string",
  • "mode": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Task pause

Pause a given task. Requires a secure connection and production role.

Request Body schema: application/json
required
task_id
required
integer

JEDI Task ID

Responses

Request samples

Content type
application/json
{
  • "task_id": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Task kill

Kill a given task. Requires a secure connection.

Request Body schema: application/json
required
task_id
required
integer

JEDI Task ID

broadcast
boolean

broadcast kill command to pilots to kill the jobs

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "broadcast": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Kill all unfinished jobs in a task

Kills all unfinished jobs in a task. Requires a secure connection.

Request Body schema: application/json
required
task_id
required
integer

JEDI task ID

code
integer

The kill code. Defaults to None.

code
2: expire
3: aborted
4: expire in waiting
7: retry by server
8: rebrokerage
9: force kill
10: fast rebrokerage in overloaded PQ
50: kill by JEDI
51: reassigned by JEDI
52: force kill by JEDI
55: killed since task is (almost) done
60: workload was terminated by the pilot without actual work
91: kill user jobs with prod role
99: force kill user jobs with prod role
use_email_as_id
boolean

Use the email as ID. Defaults to False.

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "code": 0,
  • "use_email_as_id": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Task finish

Finish a given task. Requires a secure connection.

Request Body schema: application/json
required
task_id
required
integer

JEDI Task ID

soft
boolean

soft finish

broadcast
boolean

broadcast finish command to pilots

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "soft": true,
  • "broadcast": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Reactivate task

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.

Request Body schema: application/json
required
task_id
required
integer

JEDI Task ID

keep_attempt_nr
boolean

keep the original attempt number

trigger_job_generation
boolean

trigger the job generation

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "keep_attempt_nr": true,
  • "trigger_job_generation": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Task avalanche

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.

Request Body schema: application/json
required
task_id
required
integer

JEDI Task ID

Responses

Request samples

Content type
application/json
{
  • "task_id": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Reload input

Request to reload the input for a given task. Requires a secure connection and production role.

Request Body schema: application/json
required
task_id
required
integer

JEDI Task ID

ignore_hard_exhausted
boolean

ignore the limits for hard exhausted

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "ignore_hard_exhausted": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Reassign the global share of a task

Reassign the global share of a task. Requires a secure connection and production role.

Request Body schema: application/json
required
task_id_list
required
Array of objects

List of JEDI task IDs to reassign

share
required
string

destination share

reassign_running_jobs
required
boolean

whether you want to reassign existing running jobs

Responses

Request samples

Content type
application/json
{
  • "task_id_list": [
    ],
  • "share": "string",
  • "reassign_running_jobs": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Enable Jumbo jobs

Enables the Jumbo jobs for a given task ID. Requires a secure connection and production role.

Request Body schema: application/json
required
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 jumbo_jobs_total.

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "jumbo_jobs_total": 0,
  • "jumbo_jobs_per_site": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Get jumbo job datasets

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.

query Parameters
from_offset
required
integer

now - from_offset in days will serve as the floor for modification time (Previously called n_days)

to_offset
integer

now - to_offset in days will serve as the ceiling for modification time. Defaults to 0. (Previously called grace_period)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Enable job cloning

Enable job cloning for a given task. Requires secure connection and production role.

Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "jedi_task_id": 0,
  • "mode": "string",
  • "multiplicity": 0,
  • "num_sites": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Disable job cloning

Disable job cloning for a given task. Requires secure connection and production role.

Request Body schema: application/json
required
jedi_task_id
required
integer

JEDI Task ID

Responses

Request samples

Content type
application/json
{
  • "jedi_task_id": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Increase possible task attempts

Increase possible task attempts. Requires secure connection and production role.

Request Body schema: application/json
required
task_id
required
integer

JEDI Task ID

increase
required
integer

number of attempts to increase

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "increase": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Get task status

Get the status of a given task. Requires secure connection.

query Parameters
task_id
required
integer

JEDI Task ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": "string"
}

Get task status history

Gets the status changes recorded for a task in TASKS_STATUSLOG, oldest first. Requires a secure connection.

query Parameters
task_id
required
integer

JEDI Task ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Get task details

Get the details of a given task. Requires secure connection.

query Parameters
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)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Change a task attribute

Change a task attribute within the list of valid attributes ("ramCount", "wallTime", "cpuTime", "coreCount"). Requires a secure connection and production role.

Request Body schema: application/json
required
task_id
required
integer

JEDI task ID

attribute_name
required
string

attribute to change

value
required
integer

value to set to the attribute

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "attribute_name": "string",
  • "value": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Change task modification time

Change the modification time for a task to now() + hour_offset. Requires a secure connection and production role.

Request Body schema: application/json
required
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.

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "hour_offset": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Change priority

Change the priority of a given task. Requires a secure connection and production role.

Request Body schema: application/json
required
task_id
required
integer

JEDI task ID

priority
required
integer

new priority for the task

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "priority": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Change the split rule

Change the split rule for a task by modifying or adding an attribute_name=value pair. Requires a secure connection and production role.

Request Body schema: application/json
required
task_id
required
integer

JEDI task ID

attribute_name
required
string

split rule attribute to change. The allowed attributes are defined in task_split_rules.changeable_split_rule_tags

value
required
string

value to set to the attribute

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "attribute_name": "string",
  • "value": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": null
}

Get tasks modified since

Get the tasks with modificationtime > since. Requires a secure connection.

query Parameters
since
required
string

time in the format %Y-%m-%d %H:%M:%S, e.g. 2024-12-18 14:30:45. The tasks with modificationtime > since will be returned

dn
string

user DN

full
boolean

flag to include full task information. If full=False the basic fields are jediTaskID, modificationTime, status, processingType, transUses, transHome, architecture, reqID, creationDate, site, cloud, taskName

min_task_id
integer

minimum task ID

prod_source_label
string

task type (e.g. user, managed, test, etc.)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Get detailed task info for tasks, optionally restricted to those modified since a given time.

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.

query Parameters
since
string

time in the format %Y-%m-%d %H:%M:%S. When omitted, the time-window cap is removed and matching tasks are returned regardless of age.

filters
string

JSON-encoded dict of {field: pattern} pairs. Plain values (no regex metacharacters) become SQL equality conditions. Regex patterns (containing |, ., *, etc.) are matched with re.search after fetching full task details. Unrecognised field names are silently ignored. Example: {"status": "finished|done", "prodSourceLabel": "user"}

n_tasks
integer

maximum number of task IDs to retrieve (default 500)

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Get datasets and files

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.

query Parameters
task_id
required
integer

JEDI task ID

dataset_types
Array of objects

list of dataset types, defaults to ["input", "pseudo_input"]

dataset_only
boolean

if True, only return dataset information without files, defaults to False

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Get job IDs

Get a list with the job IDs [job_id, ...] (in any status) associated to a given task. Requires a secure connection.

query Parameters
task_id
required
integer

JEDI task ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

Register task

Insert the task parameters to register a task. Requires a secure connection.

Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "task_parameters": { },
  • "parent_tid": 0
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": 0
}

Get task parameters

Get a dictionary with the task parameters used to create a task.

query Parameters
task_id
required
integer

JEDI task ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Get detailed task info

Get all task fields together with jobParamsTemplate and taskParams for a given task. The record is read without locking. Requires a secure connection.

query Parameters
task_id
required
integer

JEDI task ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Get detailed parent task info

Resolve the parent task from a given child task and return only the parent detailed information. Requires a secure connection.

query Parameters
task_id
required
integer

child JEDI task ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Get job descriptions for a task.

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.

query Parameters
task_id
required
integer

JEDI task ID.

unsuccessful_only
required
boolean

When True, return only failed, cancelled, or closed jobs. Defaults to False.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": [
    ]
}

workflow

Operations related to workflow

Submit a workflow request

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.

Request Body schema: application/json
required
params
required
object

dictionary or JSON of parameters of the raw request

Responses

Request samples

Content type
application/json
{
  • "params": { }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Submit a workflow request (deprecated)

Deprecated alias of submit_workflow, kept for pandaclient versions that still target this path.

Request Body schema: application/json
required
params
required
object

dictionary or JSON of parameters of the raw request

Responses

Request samples

Content type
application/json
{
  • "params": { }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Submit a workflow definition

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.

Request Body schema: application/json
required
workflow_definition
required
object

dictionary of workflow definition

Responses

Request samples

Content type
application/json
{
  • "workflow_definition": { }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Submit a workflow description

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.

Request Body schema: application/json
required
workflow_description
required
object

dictionary or JSON of the workflow description

Responses

Request samples

Content type
application/json
{
  • "workflow_description": { }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get workflow status

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.

query Parameters
workflow_id
required
integer

ID of the workflow to report on

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get workflow details

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.

query Parameters
workflow_id
required
integer

ID of the workflow to report on

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": { }
}

Get workflow step relations

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.

query Parameters
workflow_id
required
integer

ID of the workflow to report on

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get workflow task relations

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.

query Parameters
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

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}