max
06/11/2020, 11:24 PMairflow_ingest
example for details!alir
06/12/2020, 5:42 PMexecute_pipeline
or execute_pipeline_iterator
, which worker is the child pipeline executed in? In the same worker? Or will it be enqueued as a new job in the broker queue, to be picked up later by another worker? I'm assuming it's the former.user
06/12/2020, 7:05 PMCris
06/12/2020, 8:33 PMuser
06/13/2020, 12:24 AMsashank
06/13/2020, 1:00 AMborgdrone7
06/13/2020, 11:24 AMCris
06/13/2020, 6:59 PMCris
06/13/2020, 7:00 PMCris
06/15/2020, 8:10 PMpipelines/
--app/
----twitter/
------some_module.py
----workspaces.yaml
----repository.py
--home/
Pipifile
run.sh
...
To run dagit I use a bash script that adds pipelines/app
to the PYTHONPATH
so that the modules inside app
can be found. It used to work also with the scheduled executions. With the migration to 0.8 the schedules are failing silently. However looking into the results
file that the scheduler generates i found this error (please, apologize me for the formatting)
{"__class__": "IPCErrorMessage", "message": null, "serializable_error_info": {"__class__": "SerializableErrorInfo", "cause": null, "cls_name": "ModuleNotFoundError", "message": "ModuleNotFoundError: No module named 'twitter'\n", "stack": [" File \"/home/user/.local/share/virtualenvs/user-pipelines-mfP13m0c/lib/python3.8/site-packages/dagster/serdes/ipc.py\", line 116, in ipc_write_stream\n yield FileBasedWriteStream(file_path)\n", " File \"/home/user/.local/share/virtualenvs/user-pipelines-mfP13m0c/lib/python3.8/site-packages/dagster/cli/api.py\", line 492, in launch_scheduled_execution\n repo_def = recon_repo.get_definition()\n", " File \"/home/user/.local/share/virtualenvs/user-pipelines-mfP13m0c/lib/python3.8/site-packages/dagster/core/definitions/reconstructable.py\", line 36, in get_definition\n return repository_def_from_pointer(self.pointer)\n", " File \"/home/user/.local/share/virtualenvs/user-pipelines-mfP13m0c/lib/python3.8/site-packages/dagster/core/definitions/reconstructable.py\", line 311, in repository_def_from_pointer\n target = def_from_pointer(pointer)\n", " File \"/home/user/.local/share/virtualenvs/user-pipelines-mfP13m0c/lib/python3.8/site-packages/dagster/core/definitions/reconstructable.py\", line 271, in def_from_pointer\n target = pointer.load_target()\n", " File \"/home/user/.local/share/virtualenvs/user-pipelines-mfP13m0c/lib/python3.8/site-packages/dagster/core/code_pointer.py\", line 84, in load_target\n module = load_python_file(self.python_file)\n", " File \"/home/user/.local/share/virtualenvs/user-pipelines-mfP13m0c/lib/python3.8/site-packages/dagster/core/code_pointer.py\", line 73, in load_python_file\n return import_module_from_path(module_name, python_file)\n", " File \"/home/user/.local/share/virtualenvs/user-pipelines-mfP13m0c/lib/python3.8/site-packages/dagster/seven/__init__.py\", line 82, in import_module_from_path\n spec.loader.exec_module(module)\n", " File \"<frozen importlib._bootstrap_external>\", line 783, in exec_module\n", " File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n", " File \"/home/user/user-pipelines/app/repository.py\", line 2, in <module>\n from twitter.pipelines import (\n"]}}
{"__class__": "IPCEndMessage"}
It seems that the modules are not being picked well. Do you have advise on how, and where to setup the pythonpath so that the imports work? I guess this has to do with the new execution architecture?user
06/15/2020, 10:53 PMprha
06/15/2020, 10:55 PMgatesma
06/16/2020, 3:32 PMAlexandre Borrego
06/16/2020, 3:34 PM@repository
def repo():
return [
test,
ScheduleDefinition(
name="test_schedule",
cron_schedule="* * * * *",
pipeline_name="test",
)
]
And my dagster.yaml
looks like that:
scheduler:
module: dagster_cron.cron_scheduler
class: SystemCronScheduler
Looking at crontab and dagit, it looks like everything is setup alright, yet my test pipeline isn't running at all... Any help would be much appreciated!schrockn
06/16/2020, 3:58 PMschrockn
06/16/2020, 3:59 PMschrockn
06/16/2020, 3:59 PMschrockn
06/16/2020, 4:02 PMschrockn
06/16/2020, 5:04 PMschrockn
06/16/2020, 5:04 PMschrockn
06/16/2020, 6:11 PMschrockn
06/16/2020, 6:11 PMbenyuel
06/16/2020, 7:39 PMRafal
06/17/2020, 7:34 AMmatas
06/17/2020, 1:39 PMmatas
06/17/2020, 4:20 PMFran Sanchez
06/17/2020, 4:24 PMuser
06/17/2020, 5:48 PMnate
06/17/2020, 5:53 PM