Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zappa task is not working asyncronous on recurlsive call #1329

Open
novelview9 opened this issue Apr 19, 2024 · 1 comment
Open

zappa task is not working asyncronous on recurlsive call #1329

novelview9 opened this issue Apr 19, 2024 · 1 comment

Comments

@novelview9
Copy link

novelview9 commented Apr 19, 2024

Context


from zappa.asynchronous import task

@task
def product_collector(filter_request_id, cursor, attempt=0):
    result = request(****)
    end_cursor = result.*****
    if end_cursor:
        product_collector(filter_request_id, ending_cursor)
    else:
       # do other stuff

I think it is working with async task but it isn't

it was stopped in 15 times(aws lambda python recurlsive limitation is 15 times)
https://docs.aws.amazon.com/lambda/latest/dg/invocation-recursion.html

does anyone know this issues and how to fix it ?

@novelview9 novelview9 changed the title zappa task is not working asyncronous zappa task is not working asyncronous on recurlsive call Apr 19, 2024
@sridhar562345
Copy link
Contributor

@novelview9 It's a lambda protection mechanism to prevent unintended infinite loops.

If your design intentionally uses recursive patterns, then you can request to turn off Lambda recursive loop detection. To request this change, contact AWS Support.

The doc link you provided already has all the answers to your questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants