Skip to content

Commit

Permalink
chore: Remove unnecessary alias
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 18, 2024
1 parent 5e9b718 commit cb3a1c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
retrieve_tables,
zip_files,
)
from spoonbill_web.celery import app as celery_app
from spoonbill_web.celery import app

DATA_DIR = os.path.dirname(__file__) + "/data"
SCHEMA_PATH = f"{DATA_DIR}/schema.json"
Expand All @@ -62,7 +62,7 @@ def get_serializer_by_model(str_model, log_context=None):
return getters[str_model]["model"], getters[str_model]["serializer"]()


@celery_app.task
@app.task
def validate_data(object_id, model=None, lang_code="en"):
with internationalization(lang_code=lang_code):
logger_context = {"DATASOURCE_ID": object_id, "TASK": "validate_data"}
Expand Down Expand Up @@ -215,7 +215,7 @@ def validate_data(object_id, model=None, lang_code="en"):
)


@celery_app.task
@app.task
def cleanup_upload(object_id, model=None, lang_code="en"):
"""Task cleanup all data related to upload id."""
with internationalization(lang_code=lang_code):
Expand Down Expand Up @@ -250,7 +250,7 @@ def cleanup_upload(object_id, model=None, lang_code="en"):
logger.debug("Remove all data from %s", datasource_paths)


@celery_app.task
@app.task
def download_data_source(object_id, model=None, lang_code="en"):
with internationalization(lang_code=lang_code):
logger_context = {"DATASOURCE_ID": object_id, "TASK": "download_data_source"}
Expand Down Expand Up @@ -473,7 +473,7 @@ def download_data_source(object_id, model=None, lang_code="en"):
)


@celery_app.task
@app.task
def flatten_data(flatten_id, model=None, lang_code="en_US"):
with internationalization(lang_code=lang_code):
logger_context = {"FLATTEN_ID": flatten_id, "TASK": "flatten_data", "MODEL": model}
Expand Down
1 change: 1 addition & 0 deletions spoonbill_web/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://docs.celeryq.dev/en/stable/django/first-steps-with-django.html
from .celery import app as celery_app

__all__ = ("celery_app",)

0 comments on commit cb3a1c9

Please sign in to comment.