Why are bench commands taking so long time?

In some deployed servers, the execution of bench commands takes around 3-4 seconds, however, in others it takes until 2 minutes.

I think there could be a hint related to the connection with Redis cache servers by tracing bench CLI code.

Thank you!

@pedroifgonzalez which commands are taking 2 min? There are only a few commands that I know of that would take this long. Example: update, migrate… Majority of the commands I use during development and productions don’t take more then a few seconds.

Thanks for your response. It looks like there might be troubles with the redis server connection.

I was using pdb for debugging and there were multiple Exceptions related to Redis. Not because it could be a bug, but perhaps a wrong configuration.

An example of these commands is: bench list-apps