Ming Fang
04/20/2021, 6:17 PMdagster-daemon run
resulted in this error
dagster-daemon run
Traceback (most recent call last):
File "/usr/local/bin/dagster-daemon", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/dagster/daemon/cli/__init__.py", line 126, in main
cli(obj={}) # pylint:disable=E1123
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/dagster/daemon/cli/__init__.py", line 32, in run_command
raise Exception(
Exception: dagster-daemon can't run using an in-memory instance. Make sure the DAGSTER_HOME environment variable has been set correctly and that you have created a dagster.yaml file there.
sashank
04/20/2021, 6:19 PM$DAGSTER_HOME
to a directory path and create a dagster.yaml
in that directory?Ming Fang
04/20/2021, 6:20 PMDAGSTER_HOME
IMO it should default to
export DAGSTER_HOME=`pwd`
if it’s not already setdagster.yaml
was not needed for this particular issue; only `DAGSTER_HOME`was neededsashank
04/20/2021, 6:32 PMMing Fang
04/20/2021, 6:48 PMmy_pipeline
has modes dev
and test
, but my_sensor
defaults to mode default
resulting in run time errordagit
should let me dynamically change the sensor
mode to match the set of modes in the pipelinesashank
04/20/2021, 6:52 PMsandy
04/20/2021, 7:40 PMalex
04/20/2021, 8:26 PMMing Fang
04/21/2021, 12:30 AMdagit.sh
#!/usr/bin/env bash
mkdir -p .dagster
export DAGSTER_HOME=`pwd`/.dagster
exec dagit -h 0.0.0.0
dagster-daemon.sh
#!/usr/bin/env bash
mkdir -p .dagster
export DAGSTER_HOME=`pwd`/.dagster
exec dagster-daemon run
Hope this is help to others.