IBM Cloud Docs
When I create a single file in my Object Storage bucket, why do I get multiple events?

When I create a single file in my Object Storage bucket, why do I get multiple events?

When you create a file as an object in Object Storage, it can involve multiple Code Engine events for this one file, which creates multiple HTTP requests or multiple job invocations for the same file.

Depending on your method of uploading files to Object Storage (such as using s3fs or similar functions), Object Storage creates an Object Storage object that represents a file using multiple steps. For example, setting a creation date includes one creation step followed by multiple update steps.

Since Object Storage notifies Code Engine for each create and update request, there is no possibility for Code Engine to filter out the additional events. However, you can use another way to import the files into Object Storage; for example, use the Object Storage API directly instead of using a file system layer (such as s3fs).