Skip to content

Many S3 clients created when using RetryingFunctionExecutor #1429

@TomNicholas

Description

@TomNicholas

I was successfully using the FunctionExecutor on AWS Lambda and S3, but seeing individual tasks fail at scale. So I tried switching my code to use the RetryingFunctionExecutor that @tomwhite added in #1291, to automatically retry each task (I set it to a maximum of 2 retry attempts).

However, as a result I now get this weird behaviour:

Image

It's completed one batch of tasks (I'm running .map in a loop), but then as it tried to get the results it's somehow creating hundreds of new S3 clients. These just keep being added and added and it doesn't seem to make it to the next batch of tasks.

It didn't do this before I switched to the RetryingFunctionExecutor, so the problem must be with that (or possibly with how I'm calling that).

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