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.
firebase-queue stop handling new tasks for 20 minutes once in a while #116
Open
Description
Hey there ,
using firebase-queue to process tasks , about 60-200 in a minute.
every tasks takes about 150-200ms to process.
for some reason , we see the service freezing after some time and handling about 1 item / 2 minutes.
after restarting it , it resumes handling tasks quickly until it gets stuck again and so on.
this is how we start the service :
const options = {
'specId': "default_spec",
'numWorkers': 10
};
const queueRef = await firebaseQueueRef();
const specs = {
"default_spec": {
"start_state": null,
"in_progress_state": "in_progress",
"finished_state": null,
"error_state": "error",
"timeout": 60000,
"retries": 10
}
};
what could be the reason for such behaviour? how can we investigate it?
what would be a good workers number for our scenario? is 10 too much or too little?
Really appreciate your help here as it keeps happening about 5 times a day.
Thanks
Metadata
Metadata
Assignees
Labels
No labels