We have a use case for which we need to export an XML file to a S3 bucket (Data export) and then call an external API (transfer_api) from code repository that will push the file on the bucket to a consumer.
Our point is, as it’s not possible to trigger “transfer_api” when the “Data Export” is done as a dataset is expected as a trigger in the schedule, how can we do to launch “transfer_api” only when the export is done?
We have a way in Code Repo to check the content of a S3 bucket to check if the file is present or not and then run the tranfer_api. But if we call “transfer_api” when the export isn’t finished/done, we will have an issue because the file expected won’t be present on the S3 bucket.
So, I’m looking for suggestions/ideas which can be useful in this scenario.