Closed ds-ashanmugavel closed 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
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
[32mINFO [m[[1;34mhttp-nio-8080-exec-5[m] [1;33mo.e.t.i.c.j.BaseJobStore[m: Adding new job into jobstore: MultiTransferJob(transferProcessIds=[], job=Job(id=27c6666b-2efd-4641-9c72-b403b3fcf9eb, globalAssetId=urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e, state=INITIAL, exception=null, createdOn=2024-01-17T14:11:49.134719055Z, startedOn=2024-01-17T14:11:49.863642412Z, ..., callbackUrl=https://traceability-e2e-b.dev.demo.catena-x.net/api/irs/job/callback?id={id}&state={state})), batchId=Optional.empty, completedTransfers=[])
[32mINFO [m[[1;34mSimpleAsyncTaskExecutor-64[m] [1;33mo.e.t.i.a.j.CallbackResponderEventListener[m: Callback url pinged, received http status: 200 OK, jobId 27c6666b-2efd-4641-9c72-b403b3fcf9eb
Ticket is ready for PO-review, FYI @jzbmw.
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
-