Skip to content

Idempotency config warning - couldn't determine time left #1762

Closed Answered by heitorlessa
andrewhharmon asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!

That's our fault - could you create a docs issue so we can address it, please?

Solution

In the meantime, here's how to address it until we correct the docs and think of a better way to handle this more seamlessly within Batch:

  • add lambda_context parameter to your record_handler function as described in the Batch docs
  • move the config.register.. inside the record handler

Explanation

The decorator @batch_processor will call your record_handler function before it calls the decorated Lambda Handler (final return). Therefore, the Lambda context is only registered in the Idempotency config after all records have been processed.

This doesn't impact your ability to process once, it is worki…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@andrewhharmon
Comment options

@heitorlessa
Comment options

Answer selected by andrewhharmon
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@andrewhharmon
Comment options

@heitorlessa
Comment options

@heitorlessa
Comment options

@andrewhharmon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants