Skip to content

Radis-init worker times out while waiting for Postgres #212

@Drmaestro

Description

@Drmaestro

Hi,

During the initiation phase, Radis - init worker is waiting for postgres database to initialize and the hard-coded value for this period is set as 120 seconds. In my setup Postgres is rarely able to initialize at that interval (takes slightly longer, just by a few seconds, so around 120-140 secs), so I get a warning that Radis wasn't able to start, but then when it tries again, as Postgres is already initialized, it doesn't have a problem. While function-wise this isn't an issue, as Radis works on the second attempt, it is annoying to get an e-mail sent by the system each day at the same time (the NAS system boots at 9 a.m., and I get a warning at 9.04).

I can see that the 120 seconds value isn't an environment parameter but hard coded inside the python files. Is it possible to change it to be an environment value, so that I can modify it easily, without changing the main code? This would be better for upstream compatibility.

Thank you very much..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions