Skip to content

Complete running before fileSuccess #381

Open
@stephanieraymos

Description

@stephanieraymos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions