The docs for background functions say:
If function execution returns an error, AWS will retry the execution after one minute. If it fails again, another retry happens two minutes later.
So is the limit for retries 2? Or will it keep retrying after that? What status codes are retried? In a quick test, it looks like 404 are not retried. Does it need to be in the 5xx range?