eclipse-tractusx / traceability-foss

https://eclipse-tractusx.github.io/traceability-foss/docs/
Apache License 2.0
11 stars 22 forks source link

IRS Callback for finished jobs #432

Closed ds-ashanmugavel closed 8 months ago

ds-ashanmugavel commented 9 months ago

As Trace-X I want receive a callback/notification if my registered job has finished with jobState COMPLETED or ERROR, so that I do not have to poll the API constantly until the job turns into expected state and less resource-intensive by not constantly calling the API and an assumption how long the job processing will take is not foreseeable from my side.

Hints / Details

-https://irs.int.demo.catena-x.net/api/swagger-ui/index.html?configUrl=/api/api-docs/swagger- config#/Item%20Relationship%20Service/registerJobForGlobalAssetId -Callback url to notify requestor when job processing is finished. There are two uri variable placeholders that can be used: id and state -POST /irs/jobs

Acceptance Criteria

Out of Scope

-

ds-ext-sceronik commented 8 months ago

Additionally removed ShellDescriptor repository and cleared up code since these objects wont be required for us to persist in database for any purpouse ( data provisioning functionality will not need it also ). It was implemented while starting project when it was not yet known if it will be needed for any feature in the system

ds-alexander-bulgakov commented 8 months ago

No issues could be found during QA-review on e2e-a. In the logs the usage of callback-urls for IRS-requests can be found. No regular request to check the status are done anymore. See example for

Ticket is ready for PO-review, FYI @jzbmw.