Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
added example of redis config object and fixed workflows running on w…
Browse files Browse the repository at this point in the history
…indows
  • Loading branch information
adpham95 committed Dec 3, 2018
1 parent fcfb008 commit ce37989
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/config.py
Expand Up @@ -19,6 +19,6 @@ class TestConfig(walkoff.config.Config):
DB_PATH = abspath(join('.', 'tests', 'tmp', 'walkoff_test.db'))
EXECUTION_DB_PATH = abspath(join('.', 'tests', 'tmp', 'execution_test.db'))
NUMBER_PROCESSES = 2
CACHE = {'type': 'redis'}
CACHE = {'type': 'redis', 'host': 'localhost', 'port': 6379}
WALKOFF_DB_TYPE = 'sqlite'
SQLALCHEMY_DATABASE_URI = format_db_path(WALKOFF_DB_TYPE, DB_PATH)
2 changes: 1 addition & 1 deletion walkoff/config.py
Expand Up @@ -106,7 +106,7 @@ class Config(object):

API_PATH = join('.', 'walkoff', 'api')
APPS_PATH = join('.', 'apps')
CACHE = {'type': 'redis'}
CACHE = {'type': 'redis', 'host': 'localhost', 'port': 6379}

CLIENT_PATH = join('.', 'walkoff', 'client')
CONFIG_PATH = join(DATA_PATH, 'walkoff.config')
Expand Down
2 changes: 1 addition & 1 deletion walkoff/worker/worker.py
Expand Up @@ -36,7 +36,7 @@ def __init__(self, id_, config_path):
signal.signal(signal.SIGINT, self.exit_handler)
signal.signal(signal.SIGABRT, self.exit_handler)

if walkoff.config.Config.SEPARATE_WORKERS:
if walkoff.config.Config.SEPARATE_WORKERS or os.name == 'nt':
walkoff.config.initialize(config_path=config_path)
else:
walkoff.config.Config.load_config(config_path)
Expand Down

0 comments on commit ce37989

Please sign in to comment.