...
Textstyles |
---|
|
DRAFT - WORK IN PROGRESS | Services are in active development and are subject to change |
...
Code Block |
---|
|
ComputeCapacity[] capacity // List of ComputeCapacity objects, one per instance type that is being reserved.
float duration // Maximum number of hours the compute capacity is reserved for. Compute payloads may exit early. |
...
Code Block |
---|
|
int count // Number of successfully launched instances.
string error // Error message, if any. Optional.
|
...
To use cURL to submit a job from a .json file:
Code Block |
---|
|
$ curl -v "content-type: application/json" https://api.charityengine.services/remotejobs/v2/job-create -d @example-job-create.json |
Contents of the POST data (example-job-create.json file):
Code Block |
---|
|
{
"authenticator":"c503d86bc4e82d9415cb5912a0986c80",
"app":"charityengine:wolframengine",
"commandLine":"math 2+2 > output/out.txt",
"specs": {
"vcpus":2,
"ram": 512,
"disk": 512,
"networkDownload": 0,
"networkUpload": 0
},
"hours": 1,
"inputFiles": [
{
"filename": "in.txt",
"url": "http://work.charityengine.com/rytis/mathtest.m"
}
]
} |
...