How to find the number of times an queue item is postponed?

Hi

I have a scenario where i need to check how many times an queue item has been postponed ? Is it possible ?

regards
Vishnu

2 Likes

@vishnuvarthanp - pls check the retryno count property

That is retrieved only when the Queue item is retried.when postponing , It always gives me , 0 .

Hi @vishnuvarthanp wondering if you ever got a solution for this. I have a similar situation.

2 Likes

No :frowning: .

Retry No is available only if a item is failed and retried.

possible solution :

  1. checking if an item is already postponed ,
  2. if item is postponed , i am doing a long defer
  3. if item is not postponed , i am doing a short defer
  4. failing an item based on the max time it can stay alive