Skip to content
Snippets Groups Projects
Commit b5b5c715 authored by Timothe Jost's avatar Timothe Jost
Browse files

selfish as a variable arg

parent 440f1f77
No related branches found
No related tags found
No related merge requests found
Pipeline #127289 passed
__version__ = "0.0.43"
__version__ = "0.0.44"
from . import loggs
from .pipes import *
......
......@@ -374,7 +374,7 @@ def create_celery_app(conf_path, app_name="pypelines", v_host=None) -> "Celery |
class tasks_infos(Task):
name = f"{app_name}.tasks_infos"
def run(self, app_name):
def run(self, app_name, selfish=False):
app = APPLICATIONS_STORE[app_name]
tasks_dynamic_data = {}
pipelines = getattr(app, "pipelines", {})
......@@ -392,7 +392,7 @@ def create_celery_app(conf_path, app_name="pypelines", v_host=None) -> "Celery |
"pipe_name": step.pipe_name,
"pipeline_name": step.pipeline_name,
"requires": [item.complete_name for item in step.requires],
"step_level_in_pipe": step.get_level(selfish=False),
"step_level_in_pipe": step.get_level(selfish=selfish),
}
tasks_dynamic_data[step.complete_name] = task_data
return tasks_dynamic_data
......
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