Skip to content
Snippets Groups Projects
Commit 4e263a9c authored by Timothé  JOST-MOUSSEAU's avatar Timothé JOST-MOUSSEAU
Browse files

Update pipelines.py

parent 528f7621
No related branches found
No related tags found
No related merge requests found
Pipeline #126473 failed
...@@ -140,7 +140,15 @@ class Pipeline: ...@@ -140,7 +140,15 @@ class Pipeline:
return PipelineGraph(self) return PipelineGraph(self)
def configure_celery(self) -> None: def configure_celery(self) -> None:
from .tasks import CeleryHandler try :
from .tasks import CeleryHandler
except ImportError:
getLogger().warning(
f"Celery is not installed. Cannot set it up for the pipeline {self.pipeline_name}"
"Don't worry, about this alert, "
"this is not be an issue if you didn't explicitely planned on using celery."
)
return
celery = CeleryHandler(self.conf_path, self.pipeline_name) celery = CeleryHandler(self.conf_path, self.pipeline_name)
if celery.success: if celery.success:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment