Skip to Content
1
Former Member
Feb 22, 2017 at 10:48 AM

DataHub API retry failed publications

289 Views

We pretend to retry a publication. We have two publications: the first with id 1, and the second with id 2. We pretend to retry with a POST call:

 POST http://localhost:8080/datahub-webapp/v1/pools/GLOBAL/publications


We try to publish again the second publication:

Body with actionId=2

 {
     "actionId":"2",
     "type":"RETRY_ITEMS_PUBLICATION",
     "targetSystemPublications": [
     {
       "targetSystemName": "HybrisCore"
     }
   ]
 }

But only the first publication is attempted again. Also tried with an unknown action id, and also retries the first publication.

Body with actionID unknown

 {
     "actionId":"999",
     "type":"RETRY_ITEMS_PUBLICATION",
     "targetSystemPublications": [
     {
       "targetSystemName": "HybrisCore"
     }
   ]
 }

In these tables you can see the result:

Publicationaction alt text

Publicationretry alt text


How this POST call works? How can we retry one desired publication?

Attachments