[Iplant-api-dev] what's wrong with this notifications block?
Khalfan, Mohammed
mkhalfan at cshl.edu
Sat Dec 7 12:01:49 MST 2013
Hi,
Can you please tell me what is wrong with this JSON for my job request?
It seems to not like the notifications block. As far as I can see, i'm using the same style as what is shown here: http://agaveapi.co/job-management/
I ran it through my JSON validator, I am getting an error at line 12 (notifications), but I get this same error using the sample code from the link above. I'm not sure where the problem is. Here is my JSON:
{
"jobName": "job-2",
"softwareName": "wca-1.00",
"processorCount": 1,
"requestedTime": "00:05:00",
"maxMemory": 1,
"archive": true,
"archivePath": "/dnalc_testuser/apiv2log/job-2",
"inputs": {
"query1": "/dnalc_testuser/words.txt"
},
"notifications" : {
{
"url" : "https://genepro.cshl.edu/v2/callback.php?api_job_id=${JOB_ID}&status=${JOB_STATUS}",
"trigger" : "QUEUED"
}, {
"url" : "https://genepro.cshl.edu/v2/callback.php?api_job_id=${JOB_ID}&status=${JOB_STATUS}",
"trigger" : "RUNNING"
}, {
"url" : "https://genepro.cshl.edu/v2/callback.php?api_job_id=${JOB_ID}&status=${JOB_STATUS}",
"trigger" : "FINISHED"
}
}
}
If I remove the notifications block, the job submits successfully.
Thank you,
Mohammed
More information about the Iplant-api-dev
mailing list