question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handler takes a long time to complete...?

See original GitHub issue

Hi

I have created a resource in Java and successfully implemented it and it is working. However just to give more context, my custom resource creates a cloudhsm cluster and in the create handler I implement logic to wait for the cluster to be created using callback context as per documentation. But what I experience is that the Cloudformation resource takes a long time before it reaches the complete state. Attached is a cloudwatch log when the create has finished:

image

Notice the last line where the actual resource has been signalled as completed around 22:21 almost 10 minutes after the 22:12… Why does it writes out twice:

Record handler progress

And why does it take so long time for the second line to be written?. I can see that my resource is stuck in progress state until the second line has been written in cloudwatch logs.

The actual cloudhsm cluster only takes 4-6 minutes to complete. So what is it waiting for even when my code has returned success state once the cloudhsm cluster has been created?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
jotompkicommented, Jan 9, 2020

After looking at the stack, it looks like the delay is caused by our backoff when polling the status of the resource. The length of the backoff is a bug on CloudFormation’s side that is currently being addressed

0reactions
jotompkicommented, Mar 5, 2020

Fix should be deployed out. Going to close this out. If you still see the issue feel free to reopen!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tracking down slow event handlers with Event Timing
Two phases of an event's lifecycle can take too long: its queueing time and its event handler time. When queueing time is long, ......
Read more >
Handler and Runnable being slow - android - Stack Overflow
It can be cancelled, it can be stopped, it can be continued. It is much flexible to manage and take control of a...
Read more >
Event handler is too slow - MSDN
WebBrowser1_DocumentCompleted takes too long to run. What I understand controls and such are updated only after handler has run all its ...
Read more >
Trigger handler class method taking more CPU time
Hello, I have created method in trigger handler class but method is taking more CPU time and sometime give error.
Read more >
Working with Amazon SQS messages - AWS Documentation
Setting the visibility timeout depends on how long it takes your application to process and delete a message. For example, if your application...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found