Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Infinite loop in server/worker.py #68

@alexkillen

Description

@alexkillen

I attempted to run the following command:

cd server && python worker.py configfile.json

as specified in the README.md to start a worker, using a fresh Redis instance and a simple config file based on the ssh template. This gets stuck in an infinite loop while attempting to load a default configuration from Redis, as the retry variable is never incremented.

# load default configuration from database
retry = 0
while retry < 10:
default_config = redis.hget('default', 'configuration')
default_config_timestamp = redis.hget('default', 'timestamp')
if default_config:
break
time.sleep(5)
assert retry < 10, "Cannot retrieve default config from redis DB - aborting"

Also, I can't tell from the documentation, but (once the above is fixed) how are you meant to start a worker if you don't already have a default configuration in the Redis database?

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions