-
Notifications
You must be signed in to change notification settings - Fork 45
-
Notifications
You must be signed in to change notification settings - Fork 45
gRPC Issues with concurrent task creation - DEADLINE_EXCEEDED #580
Comments
Thanks @dschoeni for submitting this issue! With Since you have |
Thanks for taking a look at this! We managed to be able to handle the issue by sharing a |
Still throwing error on Error: 4 DEADLINE_EXCEEDED: Deadline exceeded
at Object.callErrorFromStatus (/Users/modestaspruckus/projects/backend/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/Users/modestaspruckus/projects/backend/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/client.js:180:52)
at Object.onReceiveStatus (/Users/modestaspruckus/projects/backend/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:365:141)
at Object.onReceiveStatus (/Users/modestaspruckus/projects/backend/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
at /Users/modestaspruckus/projects/backend/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/call-stream.js:182:78
at processTicksAndRejections (internal/process/task_queues.js:77:11)
at runNextTicks (internal/process/task_queues.js:64:3)
at listOnTimeout (internal/timers.js:526:9)
at processTimers (internal/timers.js:500:7) {
code: 4,
details: 'Deadline exceeded',
metadata: Metadata { internalRepr: Map(0) {}, options: {} }
} |
For people still running into this issue, we were on
We're now able to "successfully" add +30k tasks to the queue. The worst thing about this was definitely that we had no idea what google product in our stack was causing this for Firestore, Datastore, and some other libs can throw identical stack traces. |
People who are still running into this issue, consider the workaround mentioned by @yossi-eynav on #397 (comment) Currently, we're enqueuing batches of 500 tasks concurrently without any problem 👍 |
Environment details
@google-cloud/tasks
version: "2.1.0"Steps to reproduce
Our exact code:
Throws the following errors at random:
Whats worst: The tasks get created nonetheless sometimes, even if we get DEADLINE_EXCEEDED - Which became apparant because our fallback solution managed to insert duplicate tasks in the queue.
We do not create a lot of tasks at the same time, maybe 15-20 in short bursts, but the error pops up consistently. I can share our exact project id via e-mail if something at Google would like to take a look.
This issue relates to #397
The text was updated successfully, but these errors were encountered: