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

Complete running before fileSuccess #381

Open
stephanieraymos opened this issue Jan 25, 2023 · 0 comments
Open

Complete running before fileSuccess #381

stephanieraymos opened this issue Jan 25, 2023 · 0 comments

Comments

@stephanieraymos
Copy link

stephanieraymos commented Jan 25, 2023

this.flow.on('complete', () => { ... }) is running before this.flow.on('fileSuccess', async (flowFile, message, flowChunk) => { ... })

Inside fileSuccess I run a function that completes the multipart upload, and set the url to the value returned from that function. That url is then used inside the complete method. But since the complete method is running BEFORE fileSuccess, it doesn't have that url yet.

Isn't complete supposed to run only when uploading is complete?

Side note: This same approach works fine when using directories, this error/bug only occurs when uploading files.

@stephanieraymos stephanieraymos changed the title Complete running before fieSuccess Complete running before fileSuccess Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant