SlideRule Runner API (v5.4.2)

Download OpenAPI specification:

License: BSD 3-Clause

API for submitting, monitoring, and canceling SlideRule batch processing jobs. All endpoints require JWT authentication and request signature verification.

Submit a batch runner job

Submits a Lua script with a list of arguments to be executed as individual AWS Batch jobs. Each element of args becomes a separate job invocation.

Authorizations:
OAuth2
header Parameters
X-Sliderule-Timestamp
required
string

Unix timestamp (seconds since epoch) of when the request was signed.

X-Sliderule-Signature
required
string

Base64-encoded signature of the canonical request string.

Request Body schema: application/json
required
name
required
string

Human-readable name for the job.

script
required
string <byte>

Base64-encoded Lua script to execute.

args
required
Array of strings

List of argument strings; each element becomes a separate batch job.

vcpus
integer [ 1 .. 8 ]

Optional vCPU override per job container.

memory
integer [ 8192 .. 32768 ]

Optional memory (MB) override per job container.

Responses

Request samples

Content type
application/json
{
  • "name": "my-processing-job",
  • "script": "string",
  • "args": [
    ],
  • "vcpus": 1,
  • "memory": 8192
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "run_url": "s3://sliderule-public/stack-name/run-user-name-abc1234567",
  • "job_ids": [
    ]
}

Get status report on batch runner jobs

Returns detailed status information for a list of job IDs (up to 100).

Authorizations:
OAuth2
header Parameters
X-Sliderule-Timestamp
required
string

Unix timestamp (seconds since epoch) of when the request was signed.

X-Sliderule-Signature
required
string

Base64-encoded signature of the canonical request string.

Request Body schema: application/json
required
job_list
required
Array of strings <= 100 items

List of AWS Batch job IDs to query.

Responses

Request samples

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

Response samples

Content type
application/json
{
  • "property1": {
    },
  • "property2": {
    }
}

Get report on all jobs in the queue

Returns a summary count and list of jobs for the specified job state(s).

Authorizations:
OAuth2
header Parameters
X-Sliderule-Timestamp
required
string

Unix timestamp (seconds since epoch) of when the request was signed.

X-Sliderule-Signature
required
string

Base64-encoded signature of the canonical request string.

Request Body schema: application/json
required
required
string or Array of strings

One or more job states to query.

Responses

Request samples

Content type
application/json
{
  • "job_state": "SUBMITTED"
}

Response samples

Content type
application/json
{
  • "report": {
    },
  • "jobs": [
    ]
}

Cancel submitted jobs

Cancels specific jobs by ID, or all active jobs if no job_list is provided.

Authorizations:
OAuth2
header Parameters
X-Sliderule-Timestamp
required
string

Unix timestamp (seconds since epoch) of when the request was signed.

X-Sliderule-Signature
required
string

Base64-encoded signature of the canonical request string.

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

List of job IDs to cancel. If omitted, all active jobs (SUBMITTED, PENDING, RUNNABLE, STARTING, RUNNING) will be canceled.

Responses

Request samples

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

Response samples

Content type
application/json
[
  • "string"
]