Xu Zhang
11/16/2020, 7:07 AMInProcessRepositoryLocationOrigin
to build what i need which is managing pipelines completely in memory w/o dealing with physically Python files, but still would love to know what happened above.Richard Fisher
11/16/2020, 7:21 AMcomposite_name.solid_name
, but this doesn’t seem to work. I’m trying this through the Dagit playground, but I’d like it to run through execute_pipeline
Charm Malubag
11/16/2020, 12:49 PMdagster run wipe
and dagster schedule wipe
, and though these were able to reset the runs and schedules from the schedules page, the DB still seems to contain historical data, and the runs page still takes long to load.Xu Zhang
11/16/2020, 10:00 PM['/export/content/lid/apps/dagster-web/i001/bin/gunicorn', '--bind', 'localhost:5002', '--chdir', '/export/content/lid/apps/dagster-web/i001', '--pid', '/export/content/lid/apps/dagster-web/i001/logs/dagster-web.pid', '--name', 'dagster-web', '--config', '/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/dagsterweb/gunicorn_conf.py', 'dagsterweb.webapp:app', '--access-logformat', '%(h)s %(p)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s" %(T)ss %(D)sus', '--log-config', '/export/content/lid/apps/dagster-web/i001/logs/gunicorn_logging.ini']
however, im seeing this error in the log:Xu Zhang
11/16/2020, 10:00 PMwith DagsterInstance.get() as instance:
target = WorkspaceFileTarget(paths=WORKSPACE_PATHS)
with workspace_from_load_target(target) as workspace:
if not workspace:
raise Exception("Failed to created workspace")
return create_app_from_workspace(workspace, instance)
Xu Zhang
11/16/2020, 10:00 PM/export/apps/python/3.7/bin/python3.7: Error while finding module specification for 'dagster.grpc' (ModuleNotFoundError: No module named 'dagster')
Loading repository...
KafkaClient cannot be created for Log Handler in DEV fabric. No events will be sent!
/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/nbformat/notebooknode.py:4: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
from collections import Mapping
/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/jsonschema/compat.py:6: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
from collections import MutableMapping, Sequence # noqa
/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/jsonschema/compat.py:6: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
from collections import MutableMapping, Sequence # noqa
/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/graphene/relay/connection.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
from collections import Iterable, OrderedDict
/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/dagster/cli/workspace/workspace.py:50: UserWarning: Error loading repository location dagsterweb.examples.hello:(DagsterIPCProtocolError) - dagster.serdes.ipc.DagsterIPCProtocolError: Timeout: read stream has not received any data in 15 seconds
Stack Trace:
File "/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/dagster/cli/workspace/workspace.py", line 43, in _load_handle
handle = RepositoryLocationHandle.create_from_repository_location_origin(origin)
File "/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/dagster/core/host_representation/handle.py", line 47, in create_from_repository_location_origin
return ManagedGrpcPythonEnvRepositoryLocationHandle(repo_location_origin)
File "/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/dagster/core/host_representation/handle.py", line 172, in __init__
lazy_load_user_code=True,
File "/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/dagster/grpc/server.py", line 1095, in __init__
lazy_load_user_code=lazy_load_user_code,
File "/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/dagster/grpc/server.py", line 1008, in open_server_process
wait_for_grpc_server(output_file)
File "/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/dagster/grpc/server.py", line 955, in wait_for_grpc_server
event = read_unary_response(ipc_output_file, timeout=timeout)
File "/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/dagster/serdes/ipc.py", line 39, in read_unary_response
messages = list(ipc_read_event_stream(output_file, timeout=timeout))
File "/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/dagster/serdes/ipc.py", line 142, in ipc_read_event_stream
timeout=timeout
location_name=location_name, error_string=error_info.to_string()
Exception ignored in: <function ManagedGrpcPythonEnvRepositoryLocationHandle.__del__ at 0x10e571c20>
Traceback (most recent call last):
File "/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/dagster/core/host_representation/handle.py", line 245, in __del__
self.is_cleaned_up,
File "/export/content/lid/apps/dagster-web/i001/libexec/dagster-web_c0ef7b83c436eed3e1fde58bf84f5616e03c48d7605c710cc48b8158b3748442/site-packages/dagster/core/host_representation/handle.py", line 241, in is_cleaned_up
return not self.client
AttributeError: 'ManagedGrpcPythonEnvRepositoryLocationHandle' object has no attribute 'client'
Xu Zhang
11/17/2020, 5:52 AMI think this is something due to how dagsterweb got packed. it got packed into a .pyz with gunicorn + Flask app inside as a standalone app, so yes, at the very beginning, it indeed get booted up via /export/apps/python/3.7/bin/python3.7 , that is why at the running time, we see /export/apps/python/3.7/bin/python3.7 being sys.executable; however, that super-long site-packages directory is dynamically added into the sys.path, which means at running time, dagster libs can be located successfully within the same process; but since we are using sys.executable to execute another app, we are out of luck.
the only solution i could think of is to install dagster lib into the site packages of /export/apps/python/3.7/bin/python3.7 , but that would be ugly as typically it would cumbersome to install a lib on the host without going through the build & deploy pipeline.
Xu Zhang
11/17/2020, 8:09 AMCURRENT_PATH = ":".join([p.strip() for p in sys.path if p])
EXECUTABLE_PATH = check_output([sys.executable, '-c', 'import sys; print(":".join([p.strip() for p in sys.path if p]))']).decode().strip()
os.putenv('PYTHONPATH', ':'.join([CURRENT_PATH, EXECUTABLE_PATH]))
schrockn
11/17/2020, 1:40 PMJaakko Kangasharju
11/18/2020, 8:46 AMFelix Yuan
11/18/2020, 10:34 AMKeval
11/18/2020, 7:29 PMdownload_file("file_path")
Jake Smart
11/19/2020, 2:55 AMIstvan Darvas
11/19/2020, 2:15 PMKeval
11/19/2020, 9:01 PMFrank Dekervel
11/19/2020, 9:33 PMuser
11/19/2020, 11:22 PMschrockn
11/19/2020, 11:53 PMschrockn
11/19/2020, 11:53 PMdwall
11/19/2020, 11:54 PMIstvan Darvas
11/20/2020, 7:27 AMXu Zhang
11/20/2020, 8:14 AMXu Zhang
11/20/2020, 8:15 AMXu Zhang
11/20/2020, 8:16 AMIstvan Darvas
11/20/2020, 12:21 PMIstvan Darvas
11/20/2020, 2:15 PMPaul Wyatt
11/20/2020, 5:42 PMdagster.core.errors.DagsterInvariantViolationError: Reconstructable target should be a function or definition produced by a decorated function, got <class 'dagster.core.definitions.pipeline.PipelineDefinition'>
The use case is writing tests for hook-decorated pipelines. Another potentially workable solution would be if hooks could be applied as part of an execute_pipeline
call.Nate Loker
11/20/2020, 9:46 PMXu Zhang
11/21/2020, 5:25 AMXu Zhang
11/21/2020, 5:26 AM