Roberto Tolosa
03/14/2023, 4:51 AMMichiel Ghyselinck
03/14/2023, 9:14 AMrepo.py
. Then I had a look at this repo: https://github.com/dagster-io/dagster/tree/master/examples/quickstart_aws . Which seems to be more up to date but it does not have any docs on how to deploy it on aws. Is there an up to date example on how to deploy the open source to AWS with the Definitions
way of working? 🙂Roberto Tolosa
03/17/2023, 4:12 AMashish meshram
03/22/2023, 1:57 PMlocation_name: cloud-examples
image: dagster/dagster-cloud-examples
code_source:
package_name: dagster_cloud_examples
I launched the job and it run fine and provided me the results, however the task is till there and consuming resources on AWS.
I understand that Agent needs to run all the time however, code location specific ecs service/task should only be triggered when we push run or scheduler runs it.
is the functionality or am i missing something ?Alvin Lee
03/28/2023, 10:37 AMChris Zubak-Skees
03/30/2023, 3:41 PMTimothy Elder
04/03/2023, 8:37 PMrectalogic
04/05/2023, 5:40 PMlatest
tag of an image - what will trigger dagster to force a new version of the TaskDefinition
so it pulls the new image?Timothy Elder
04/05/2023, 8:57 PMTypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster_graphql/implementation/utils.py", line 126, in _fn
return fn(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster_graphql/implementation/execution/launch_execution.py", line 35, in launch_pipeline_execution
return _launch_pipeline_execution(graphene_info, execution_params)
File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster_graphql/implementation/execution/launch_execution.py", line 69, in _launch_pipeline_execution
run = do_launch(graphene_info, execution_params, is_reexecuted)
File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster_graphql/implementation/execution/launch_execution.py", line 54, in do_launch
return graphene_info.context.instance.submit_run(
File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster/_core/instance/__init__.py", line 2079, in submit_run
submitted_run = self._run_coordinator.submit_run(
File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster/_core/run_coordinator/default_run_coordinator.py", line 40, in submit_run
self._instance.launch_run(pipeline_run.run_id, context.workspace)
File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster/_core/instance/__init__.py", line 2132, in launch_run
self.run_launcher.launch_run(LaunchRunContext(dagster_run=run, workspace=workspace))
File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster_aws/ecs/launcher.py", line 370, in launch_run
run_task_kwargs = self._run_task_kwargs(run, image, container_context)
File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster_aws/ecs/launcher.py", line 557, in _run_task_kwargs
self._get_current_task(),
File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster_aws/ecs/launcher.py", line 483, in _get_current_task
current_task_metadata = self._get_current_task_metadata()
File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster_aws/ecs/launcher.py", line 478, in _get_current_task_metadata
self._current_task_metadata = get_current_ecs_task_metadata()
File "/home/ubuntu/.local/lib/python3.8/site-packages/dagster_aws/ecs/tasks.py", line 255, in get_current_ecs_task_metadata
task_metadata_uri = _container_metadata_uri() + "/task"
Our config block in the dagster.yaml (AWS acct redacted) is...
run_launcher:
module: "dagster_aws.ecs"
class: "EcsRunLauncher"
config:
use_current_ecs_task_config: false
run_task_kwargs:
cluster: arn:aws:ecs:us-west-2:XXXXXXXXX:cluster/produsa-data-science
launchType: "FARGATE"
Am I missing something in the config? I can post the code for the actual job if needed but figured I would start with this first.rectalogic
04/06/2023, 4:01 PMdagster_cloud.workspace.ecs.client.EcsServiceError: ECS service failed because task arn:aws:ecs:us-west-2:XXXX:task/dagster-cluster/9cd06ec3d77940d4a3032497b3b58561 failed: ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve secret from asm: service call has been retried 5 time(s): failed to fetch secret arn:aws:secretsmanager:us-west-2:XXXX:secret:XXXXDatascienceSecrets from secrets manager: RequestCanceled: request context canceled caused by: context deadline exceeded. Please check your task network configuration.
File "/dagster-cloud/dagster_cloud/workspace/user_code_launcher/user_code_launcher.py", line 1255, in _reconcile
self._wait_for_new_server_ready(
File "/dagster-cloud/dagster_cloud/workspace/ecs/launcher.py", line 359, in _wait_for_new_server_ready
task_arn = self.client.wait_for_new_service(
File "/dagster-cloud/dagster_cloud/workspace/ecs/client.py", line 405, in wait_for_new_service
return self.check_service_has_running_task(
File "/dagster-cloud/dagster_cloud/workspace/ecs/client.py", line 517, in check_service_has_running_task
self._raise_failed_task(task, container_name, logger)
File "/dagster-cloud/dagster_cloud/workspace/ecs/client.py", line 442, in _raise_failed_task
raise EcsServiceError(task_arn=task_arn, stopped_reason=stopped_reason, logs=logs)
rectalogic
04/06/2023, 5:40 PMdagster/dagster-cloud-agent:1.2.4
and I set DAGSTER_HOME
env var on the container to /opt/dagster/dagster_home
. The image for my code location does not have the /opt/dagster
directory and so I set DAGSTER_HOME
in dagster.yaml
env_vars
to /home/dagster
- but it still seems to be trying to store output in /opt/dagster
which doesn't exist (and it does not have permission to create)
dagster._core.errors.DagsterExecutionHandleOutputError: Error occurred while handling output "result" of step "hello_redshift":
...
The above exception was caused by the following exception:
PermissionError: [Errno 13] Permission denied: '/opt/dagster'
File "/site/venv/lib/python3.10/site-packages/dagster/_core/execution/plan/utils.py", line 54, in op_execution_error_boundary
yield
File "/site/venv/lib/python3.10/site-packages/dagster/_utils/__init__.py", line 439, in iterate_with_context
next_output = next(iterator)
File "/site/venv/lib/python3.10/site-packages/dagster/_core/execution/plan/execute_step.py", line 594, in _gen_fn
gen_output = output_manager.handle_output(output_context, output.value)
File "/site/venv/lib/python3.10/site-packages/dagster/_core/storage/upath_io_manager.py", line 239, in handle_output
path.parent.mkdir(parents=True, exist_ok=True)
Arnoud van Dommelen
04/07/2023, 12:03 PMrectalogic
04/10/2023, 2:27 PMservicediscovery:DeleteService
to delete any servicediscovery service. Is it possible to use a tag condition key with this aws:ResourceTag/${TagKey}
? It looks like dagster cloud may pass some tags like dagster/deployment_name
when it creates the service registry, but not when it deletes it so I suspect there is no way to scope this down.
https://docs.aws.amazon.com/service-authorization/latest/reference/list_awscloudmap.html#awscloudmap-serviceJoseph Beerman
04/11/2023, 3:19 PMrectalogic
04/11/2023, 6:50 PMdagster/dagster-cloud-agent:1.2.4
agent in our private ECR. Amazon Inspector is flagging a bunch of vulnerabilities. How often does dagster rebuild tagged images on top of the latest base image to incorporate security patches?Jamie Lee
04/12/2023, 8:40 AMSlackbot
04/21/2023, 9:08 AMGu Xie
04/22/2023, 3:53 PMJordan
05/04/2023, 4:28 PMRobert Lawson
05/10/2023, 4:45 PMdagster -v
while debugging to figure out what's upRobert Lawson
05/10/2023, 4:50 PM5/10/2023, 5:43:22 PM GMT+1 [32m2023-05-10 16:43:22 +0000[0m - dagster - [34mINFO[0m - Shutting down Dagster code server for file /opt/dagster/dagster_home/modules/.../module.py in process 5807 dbd67f391a7a47858ad4f0459c3ff6ba dagit
5/10/2023, 5:43:22 PM GMT+1 [32m2023-05-10 16:43:22 +0000[0m - dagster - [34mINFO[0m - Shutting down Dagster code server for file /opt/dagster/dagster_home/modules/.../module.py in process 3479 dbd67f391a7a47858ad4f0459c3ff6ba dagit
5/10/2023, 5:43:22 PM GMT+1 [32m2023-05-10 16:43:22 +0000[0m - dagster - [34mINFO[0m - Shutting down Dagster code server for file /opt/dagster/dagster_home/modules/.../module.py in process 1093 dbd67f391a7a47858ad4f0459c3ff6ba dagit
5/10/2023, 5:43:22 PM GMT+1 [32m2023-05-10 16:43:22 +0000[0m - dagster - [34mINFO[0m - Shutting down Dagster code server for file /opt/dagster/dagster_home/modules/.../module.py in process 3356 dbd67f391a7a47858ad4f0459c3ff6ba dagit
5/10/2023, 5:41:47 PM GMT+1 [32m2023-05-10 16:41:47 +0000[0m - dagit - [34mINFO[0m - Serving dagit on <http://0.0.0.0:8080> in process 1 5bea78746a3f44da86fbbbbee75b84ca dagit
5/10/2023, 5:41:47 PM GMT+1 Telemetry: 5bea78746a3f44da86fbbbbee75b84ca dagit
5/10/2023, 5:41:47 PM GMT+1 As an open source project, we collect usage statistics to inform development priorities. For more 5bea78746a3f44da86fbbbbee75b84ca dagit
5/10/2023, 5:41:47 PM GMT+1 information, read <https://docs.dagster.io/install#telemetry>.
But it seems like that is common from searching SlackArnoud van Dommelen
05/11/2023, 9:15 AMArnoud van Dommelen
05/16/2023, 1:01 PMFraser Marlow
05/17/2023, 2:54 AMBrian Multhauf
05/17/2023, 12:22 PMAsif Imran
05/17/2023, 3:39 PMNoam Jacobson
05/25/2023, 5:39 AMSoonho Kwon
05/25/2023, 3:26 PMAustin
05/25/2023, 11:32 PMKurt D.
06/02/2023, 1:11 PM