Charles Lariviere
02/27/2023, 7:56 PMecs/cpu
and ecs/memory
tags for an ECS deployment with Fargate, but it doesn't seem to be possible to request specific EC2 instances within the Dagster context. Is using Kubernetes and per-job/op tags the recommended solution currently?YH
02/28/2023, 5:33 AMSimo Tumelius
02/28/2023, 8:54 AMsqlalchemy.exc.OperationalError: (psycopg2.errors.QueryCanceled) canceling statement due to statement timeout
error from one of our sensors that's iterating over a GCS bucket and generating a run request for each file. We have a serverless cloud deployment. Is there a way to increase the statement timeout in Dagster Cloud?
Traceback:
File "/dagster/dagster/_daemon/sensor.py", line 489, in _process_tick_generator
yield from _evaluate_sensor(
File "/dagster/dagster/_daemon/sensor.py", line 626, in _evaluate_sensor
existing_runs_by_key = _fetch_existing_runs(
File "/dagster/dagster/_daemon/sensor.py", line 740, in _fetch_existing_runs
runs_with_run_keys = instance.get_runs(filters=RunsFilter(tags={RUN_KEY_TAG: run_keys}))
File "/dagster/dagster/_utils/__init__.py", line 697, in inner
return func(*args, **kwargs)
File "/dagster/dagster/_core/instance/__init__.py", line 1500, in get_runs
return self._run_storage.get_runs(filters, cursor, limit, bucket_by)
File "/dagster-cloud-backend/dagster_cloud_backend/storage/host_cloud/run_storage/storage.py", line 449, in get_runs
rows = self._readall(query)
File "/dagster-cloud-backend/dagster_cloud_backend/storage/host_cloud/cloud_storage/mixin.py", line 31, in _readall
return conn.execute(query).fetchall()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1380, in execute
return meth(self, multiparams, params, _EMPTY_EXECUTION_OPTS)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 334, in _execute_on_connection
return connection._execute_clauseelement(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1572, in _execute_clauseelement
ret = self._execute_context(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1943, in _execute_context
self._handle_dbapi_exception(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 2124, in _handle_dbapi_exception
util.raise_(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 211, in raise_
raise exception
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1900, in _execute_context
self.dialect.do_execute(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 736, in do_execute
cursor.execute(statement, parameters)
File "/usr/local/lib/python3.8/site-packages/ddtrace/contrib/dbapi/__init__.py", line 138, in execute
return self._trace_method(
File "/usr/local/lib/python3.8/site-packages/ddtrace/contrib/psycopg/patch.py", line 70, in _trace_method
return super(Psycopg2TracedCursor, self)._trace_method(
File "/usr/local/lib/python3.8/site-packages/ddtrace/contrib/dbapi/__init__.py", line 107, in _trace_method
return method(*args, **kwargs)
Manish Khatri
03/01/2023, 4:07 PMLex Holt
03/01/2023, 5:16 PMZach P
03/01/2023, 6:31 PMSebastian Charrier
03/01/2023, 11:29 PMlocations:
- location_name: data_analytics
code_source:
package_name: analytics
- location_name: ml
code_source:
package_name: machine_learning
and my folder structure
dagster_project
|--- shared_resources
| |--- resources
|--- analytics
| |--- assets
| |--- __init__.py
|--- machine_learning
| |--- assets
| |--- __init__.py
and for the defs in dagster_project/analytics/__init__.py and dagster_project/machine_learning/__init__.py I am importing the resources from shared_resources folder
from ..shared_resources.resources import RESOURCES_LOCAL, RESOURCES_PROD, RESOURCES_STAGING
from .assets import source_system_assets
deployment_name = os.environ.get("DAGSTER_DEPLOYMENT", "local")
resources_by_deployment_name = {
"local" : RESOURCES_LOCAL,
"staging": RESOURCES_STAGING,
"prod" : RESOURCES_PROD
}
all_assets = [*source_system_assets]
defs = Definitions(
assets = all_assets,
resources = resources_by_deployment_name[deployment_name],
)
But I am having this error. Is it the right way to organise code locations? how do I add more than 1 code location and share some common elements like resources or assets?
Thank you!!!Nuchapol (Nut) Rattanapan
03/02/2023, 8:50 AMBen Torvaney
03/02/2023, 1:05 PMJacob Hileman
03/02/2023, 3:24 PMDeividas Jodogalvis
03/02/2023, 4:53 PMModuleNotFoundError: No module named 'dagster_cloud_serverless_agent'
getting this error on job run in dagster cloud
the job is working in local dev
I have the package in setup.py
install_requires=[
"dagster==1.1.20",
"dagster-cloud==1.1.20",
"dagster-docker==0.17.20",
"dagster-slack==0.17.20",
"boto3==1.26.81",
],
Abhishek Agrawal
03/03/2023, 3:54 AMTobias Otte
03/03/2023, 12:46 PMJuan Diego Castrillon
03/03/2023, 11:31 PMdagster._core.errors.DagsterUserCodeUnreachableError: User code server request timed out due to taking longer than 60 seconds to complete.
Mark Fickett
03/06/2023, 8:27 PMAbhishek Agrawal
03/07/2023, 2:02 AMAbhishek Agrawal
03/07/2023, 4:52 AMZach P
03/07/2023, 5:04 PMCharles Couble
03/07/2023, 10:14 PMThe limitations should be 16Go of memory : should be more of enough for the job i want to execute).
As suggested on the error message, there might be a run memory configuration ? But I don't seem to see it anywhere when looking the docs.PS : I realize that there was a TRY / EXCEPT block statement on my job code . But it did not execute on that error , Do you have any idea of ways to handle exceptions on Dagster Jobs ? (if the job gets killed by an issue outside the python scope , as in the curent example with memory issue)
ziwei
03/08/2023, 9:30 AMLeo Qin
03/08/2023, 4:50 PMsetup.py
to use, but it seems that when I pass --env
to the dagster-cloud CLI it is not set until after setup runs... is that correct? What are the alternatives?sri raghavan
03/08/2023, 7:30 PMQwame
03/10/2023, 5:09 PMAndres Crucetta
03/10/2023, 5:35 PMBeth Nakamura
03/10/2023, 10:34 PMMichiel Ghyselinck
03/14/2023, 9:50 AMgeoHeil
03/14/2023, 12:08 PMMost recent connection error: dagster._core.errors.DagsterUserCodeUnreachableError: Could not reach user code server. gRPC Error code: UNAVAILABLE
Matt Ellis
03/14/2023, 2:41 PMRyan Meekins
03/14/2023, 5:35 PMDanny Xie
03/14/2023, 7:00 PMStarted Dagster code server for file dagster/repository.py on port 4000 in process 1