Skip to content

Commit

Permalink
Minor code added to update task
Browse files Browse the repository at this point in the history
  • Loading branch information
P-T-I committed Apr 23, 2024
1 parent 64f2736 commit 5a2c7ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CveXplore/celery_app/cvexplore_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

from dotenv import load_dotenv

from CveXplore import CveXplore

user_wd = os.path.expanduser("~/.cvexplore")

load_dotenv(os.path.join(user_wd, ".env"))
Expand Down Expand Up @@ -235,6 +233,8 @@ def crt_update(task_slug: str, *args, **kwargs) -> dict:
tasks
"""
from CveXplore import CveXplore

rh = RedisHandler(redis_client=app.backend.client)

# Acquiring a lock to prevent this specific task to run twice or more at a time
Expand Down

0 comments on commit 5a2c7ae

Please sign in to comment.