toggle off requests workflow with config option
This commit is contained in:
@@ -64,9 +64,12 @@ def make_app(config):
|
||||
make_error_pages(app)
|
||||
app.register_blueprint(bp)
|
||||
app.register_blueprint(workspace_routes)
|
||||
app.register_blueprint(requests_bp)
|
||||
app.register_blueprint(task_orders_bp)
|
||||
app.register_blueprint(user_routes)
|
||||
|
||||
if app.config.get("REQUESTS_WORKFLOW"):
|
||||
app.register_blueprint(requests_bp)
|
||||
|
||||
if ENV != "prod":
|
||||
app.register_blueprint(dev_routes)
|
||||
|
||||
@@ -131,6 +134,7 @@ def map_config(config):
|
||||
"REQUIRE_CRLS": config.getboolean("default", "REQUIRE_CRLS"),
|
||||
"RQ_REDIS_URL": config["default"]["REDIS_URI"],
|
||||
"RQ_QUEUES": [config["default"]["RQ_QUEUES"]],
|
||||
"REQUESTS_WORKFLOW": config.getboolean("default", "REQUESTS_WORKFLOW"),
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user