-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
The swatch-offering-sync job is defined in the clowdapp.yaml file as a cronjob.
However, this job will start the Swatch Tally service using the profiles "offering-sync" and "kafka-queue" (see here).
The relevant profile here is "offering-sync" which will make the Tally service to act as a command line program to execute the OfferingSyncJob task which does:
controller.syncAllOfferings();
The same method is invoked by calling the endpoint "/rpc/offerings/sync".
Acceptance Criteria:
- Modify the "sync" job in clowdapp.yaml to invoke the "/rpc/offerings/sync". (As an example, the "purge" job is already invoking another endpoint here).
- Delete the spring profile "offering-sync" since it should not be used any longer (ensure "OfferingSyncController" is properly imported when running the swatch tally service).
- Delete CaptureSnapshotsConfiguration, OfferingSyncConfiguration
- Update the diagram to remove the deleted profile