Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wait for s3 file to appear #1178

Open
mlybarger opened this issue Jun 17, 2024 · 4 comments
Open

wait for s3 file to appear #1178

mlybarger opened this issue Jun 17, 2024 · 4 comments

Comments

@mlybarger
Copy link

hi, i have a longer running process that we're using citrus to test. the process is kicked off from an airflow job that we invoke from citrus. the job will launch some processing ec2's, then it will launch an EMR to convert the data to parquet, and load to our data lake.

when the emr is complete, it puts a done file in a known spot in an s3 bucket. current, we just have a <sleep seconds="1800" to give enough time for the process to finish.

what's a better way to say "wait for the done file to show up, or timeout after 30 minutes."

we're using xml dsl on an older version of citrus 2.7.9, , but are looking to update citrus soon.

@bbortt
Copy link
Collaborator

bbortt commented Jun 19, 2024

there are retry actions available, did you take a look at these?

https://citrusframework.org/citrus/reference/4.2.1/html/index.html#containers-repeat

@christophd
Copy link
Member

there is also a repeat-on-error container that performs a nested action with retry mechanism. you can define the maximum number of retries and a delay between attempts.

https://citrusframework.org/citrus/reference/4.2.1/html/index.html#containers-repeat-on-error

@christophd
Copy link
Member

BTW, looking forward to seeing you update to later Citrus versions. Please, let us know how it goes 🤞

@bbortt
Copy link
Collaborator

bbortt commented Oct 1, 2024

@mlybarger any news on this? it's been a while 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants