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.

Allow default Queue visibility timeout parameters to be customized

See original GitHub issue

Currently in our default QueueProcessor we hard code the visibility timeout for failed queue trigger invocations to TimeSpan.Zero (code here). While you can write and register your own custom queue processor to override this, we should provide a JobHostQueuesConfiguration knob at the host level that lets this default be set globally.

A configuration knob is particularly IMPORTANT in scenarios like Azure Functions where the possibility for users to write a custom QueueProcessor doesn’t exist.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
dnlmcvcommented, Jul 25, 2017

Hi @mathewc ,

Still it is not working with azure functions. I’ve created an azure functions project in Visual Studio and configured the host.json file with following values: { “queues”: { “visibilityTimeout” : “00:01:00” } } The messages are retried with 0 seconds timeout. Any input on this ?

Thank you

2reactions
dnlmcvcommented, Nov 8, 2018

Will the visibility timeout only apply to retried queue items or does it apply to newly added items to the queue as well?

I don’t think so.

I believe your best chance of achieving some kind of transient fault handling is to create your own implementation where you do following:

  • Clone the brokered message
  • Add custom property for the number of retries
  • Add an exponential or logarithmic logic for setting the enqueue time.
  • Schedule the message and add it to queue for an execution at a later time.

I hope this helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Amazon SQS visibility timeout
The default visibility timeout for a message is 30 seconds. The minimum is 0 seconds. The maximum is 12 hours. For information about...
Read more >
What does visibility Timeout mean for AWS SQS
Visibility timeout is the time-period or duration you specify for the queue item which when is fetched and processed by the consumer is...
Read more >
AWS SQS Visibility Timeout Explained
Every SQS queue has the default visibility timeout setting for 30 seconds. The minimum is 0 seconds and the maximum is 12 hours....
Read more >
Custom Visibility Timeout for Queue Nessage in Output ...
When setting up a queue in output binding for a function , we have the ability to set a default visibility timeout as...
Read more >
aws.sqs.Queue
The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more...
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