[Iplant-api-dev] Wildcard Events for Job Status Notifications

Dennis Roberts dennis at iplantcollaborative.org
Wed Aug 13 16:12:21 MST 2014


I was hoping to find a way to subscribe to all possible job status change events using a single notification request. I found a note on the notifications documentation page, http://agaveapi.co/notifications-and-events/, that seems to indicate that it’s possible to do that by specifying a wildcard for the name of the event. When I tried this, however, no notifications were registered at all. Am I doing something wrong?

Here’s an EDN version of the job request:

{:notifications
 [{:url
   "https://de-2.iplantc.org/de/agave-cb/077ec168-93fb-4a1b-aede-ca5e597cde75?status=${JOB_STATUS}&external-id=${JOB_ID}&end-time=${JOB_END_TIME}",
   :event "*"}],
 :archiveSystem "irods-2.iplantcollaborative.org",
 :archivePath "/dennis/analyses/wc_08131601-2014-08-13-23-01-12.6",
 :archive true,
 :appId "failing-word-count-0.0.1",
 :name "wc_08131601",
 :inputs
 {:wcInput
  "agave://irods-2.iplantcollaborative.org/dennis/test_clear_range.fastq"},
 :parameters {}}

When formatted as JSON the job request would look like this:

{"notifications":
 [{"url":
   "https://de-2.iplantc.org/de/agave-cb/077ec168-93fb-4a1b-aede-ca5e597cde75?status=${JOB_STATUS}&external-id=${JOB_ID}&end-time=${JOB_END_TIME}",
   "event": "*"}],
 "archiveSystem": "irods-2.iplantcollaborative.org",
 "archivePath":"/dennis/analyses/wc_08131601-2014-08-13-23-01-12.6",
 "archive":true,
 "appId":"failing-word-count-0.0.1",
 "name":"wc_08131601",
 "inputs":
 {"wcInput":
  "agave://irods-2.iplantcollaborative.org/dennis/test_clear_range.fastq"},
 "parameters":{}}

Thanks,
Dennis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iplantcollaborative.org/pipermail/iplant-api-dev/attachments/20140813/fd7477be/attachment.html 


More information about the Iplant-api-dev mailing list