Ir para o conteúdo

Lambda Invoke Manually from jenkins using AWS Lambda Invoke

0

Hi,

I am using aws lambda invoke but sometimes lambda is invoking multiple times.Can you please let me know the options to trigger lambda only once when i run the jenkins pipeline. My requirement is to trigger lambda manually not schedule or through sqs.

feita há 2 anos765 visualizações

2 Respostas
1

I don't have a good overview of the current environment setup but there could be a few reasons why a Lambda function could be invoked more than once, a few that I've encountered were related to:

  1. On errors: A function can be invoked multiple times depending on the number of configured retries and type of error. You can read more about this from the API docs. It may be useful to verify the CloudWatch Logs generated by the function in execution to see if there is an error.
  2. On timeouts: On long running functions that exceed the timeout your function may be invoked more than once, if this is the case, increasing the timeout will help. This was documented as an issue in the pipeline-aws-plugin for jekinsci. That thread may be useful troubleshooting your issue.

Hope this helps in your troubleshooting.

respondido há 2 anos

0
ESPECIALISTA

respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.