Direkt zum Inhalt

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.

gefragt vor 2 Jahren763 Aufrufe

2 Antworten
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.

beantwortet vor 2 Jahren

0
EXPERTE

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.