Skip to content

Commit

Permalink
fix: gha
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Aug 23, 2024
1 parent 0ea9a27 commit 5ae5843
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
include:
- yml-file: .helm/adhoc/warm-cache.yaml
podname: warmup-pod
- yaml-file: .helm/adhoc/warm-cache-v4.yaml
- yml-file: .helm/adhoc/warm-cache-v4.yaml
podname: warmup-pod-v4
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions new_api/common/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def dummy(*args, **kwargs): pass

ROLE_TYPE = Union[Literal['worker'], Literal["server"], Literal["all"]]
ROLE_TYPE = Literal["worker", "server", "all"]

def data_decorator(role: ROLE_TYPE):
"""data decorator
Expand All @@ -19,7 +19,7 @@ def data_decorator(role: ROLE_TYPE):
Raises:
ImportError: Celery not installed, but role is set to either `worker` or `server`
"""
if role != "worker":
if role == "all":
logger.warning(f"Role was set to be {role}, calls to map/* endpoints will fail. See https://github.com/FZJ-INM1-BDA/siibra-api/issues/151")
def outer_wrapper(fn):
if role == "all":
Expand Down

0 comments on commit 5ae5843

Please sign in to comment.