OTA espota timeout PatformIO

Hi All
I have an ESP32 running a script based on ReactESP . The ESP is in deep sleep for 45 seconds in every minute. To upload firmware I have to repeatedly click upload until the ESP wakes up and the firmware is uploaded successfully. My question is how can I configure espota to keep trying to connect, I have tried increasing the timeout to 30 but this has no effect.
The current platformIO settings are
upload_protocol = espota
upload_port = esp32-xxxxxxxxxx
upload_flags = --auth=********, --timeout=30

Thanks

If timeout doesn’t work correctly / doesn’t retry the connection, which seems to be what it should do, please tell Espressif at

https://github.com/espressif/esptool/issues

about that issue. They can solve it.