Open groenlid opened 8 years ago
I will try to have a look at it tomorrow...
After my tests it's working well.
But i think you missed something in the docs.
The unit of the timeout
is ms
and for invisibletime
it's s
.
So you're using 10 minutes timeout and 6,94 days invisibility.
The Setting timeout
is used inside rsmq-worker
to define a time a single process/messgae is allowed to run.
The invisibletime
configuration is the time a message will be invisible for all workers after it was once received. This is required to prevent a message to be processed by mutliple workers in parallel.
I hope this clears your case.
In my code, I'm currently trying to create a new queue if necessary and start processing messages using the rsmq-worker package. The worker is doing time-consuming work so I want the timeout and invisibletime to be a high number.
This command seem to create the queue, but with the wrong invisible-value. It seems to set the default 30sek value instead of the value in the options-object.