Pub/Sub emulator huge delay on pull subscriptions
I'm experiencing huge delays (which are blocking the development) from time to time on the pubsub emulator pull subscriptions.
I'm starting the pubsub emulator via docker using latest google/cloud-sdk alpine image (I've tried also debian based image):
FROM google/cloud-sdk:alpine RUN gcloud components install --quiet \ pubsub-emulator \ beta EXPOSE 8538 VOLUME /opt/data
Starting the docker with command:
gcloud beta emulators pubsub start \
I create topics and subscriptions via curl, I'm trying to create pull message subscriptions the same way.
When I create pull message, there is sometimes 5 minute delay before I can get the message back. Sometimes I get the message with no delay.
Did anyone else experienced this issue with the pubsub emulator started via docker?
Can anyone give a hint about this delay issue?
Lubomir Stanko commented
I've found out, that there was already someone with a similar issue. We are also using php enqueue bundle:
We have set receiveTimeout to 2 seconds and that was the problem. After we have set receiveTimeout to default (30s), everything started to work a lot better. Now we have sometimes 8 second delay on pull messages with pubsub emulator, which is probably OK.