Skip to content

Commit

Permalink
Merge pull request #26 from opensean/fix/project_path
Browse files Browse the repository at this point in the history
fix KedroSession args
  • Loading branch information
opensean authored Jul 17, 2024
2 parents 3e4e3cc + d781261 commit 24eb6bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/kedro_graphql/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""kedro-graphql
"""
__version__ = "0.5.0"
__version__ = "0.5.1"

from .asgi import KedroGraphQL
4 changes: 2 additions & 2 deletions src/kedro_graphql/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ def init_app(app, config, session):

def start_app(app, config, conf_source, env, package_name, project_path):
bootstrap_project(project_path)
with KedroSession.create(package_name, project_path = project_path, env = env, conf_source = conf_source) as session:
with KedroSession.create(project_path = project_path, env = env, conf_source = conf_source) as session:
a = init_app(app, config, session)
uvicorn.run(a, host="0.0.0.0", port=5000, log_level="info")

def start_worker(app, config, conf_source, env, package_name, project_path):

bootstrap_project(project_path)
with KedroSession.create(package_name, project_path = project_path, env = env, conf_source = conf_source) as session:
with KedroSession.create(project_path = project_path, env = env, conf_source = conf_source) as session:
a = init_app(app, config, session)
from .celeryapp import celery_app
capp = celery_app(a.config, a.backend)
Expand Down

0 comments on commit 24eb6bf

Please sign in to comment.