zappa / Zappa

Serverless Python
https://zappa.ws/zappa
MIT License
3.24k stars 362 forks source link

zappa task is not working asyncronous on recurlsive call #1329

Closed novelview9 closed 1 month ago

novelview9 commented 4 months ago

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 ?

sridhar562345 commented 4 months ago

@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.

github-actions[bot] commented 1 month ago

Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed.

github-actions[bot] commented 1 month ago

Hi there! Unfortunately, this Issue was automatically closed as it had not seen any activity in at least 100 days. If the Issue is still relevant to the latest version of Zappa, please open a new Issue.