This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Task in queue expires immediately #45
Open
Description
I'm somewhat sure that this isn't a issue with firebase-queue but with my production environment. I'm documenting it here in case it helps others figure out why firebase-queue isn't working for them.
In queue_worker.js is this line:
var expires = Math.max(0, startTime - now + self.taskTimeout);
Since 'now' is later that 'startTime' the expression 'startTime - now' should be a small negative. But on my production server its a very large positive. And all sorts of hell breaks loose because of it.
When we put firebase-queue into production this wasn't an issue. But something has changed and I'll be looking into what that might be.
I solved the issue with this hack, changing the code to:
var expires = self.taskTimeout;
Metadata
Metadata
Assignees
Labels
No labels