Bianca Rosa
03/13/2023, 5:06 PMtask_definition_arn
on DAGSTER_CONTAINER_CONTEXT
, do I need to specify the task revision? Currently hitting botocore.errorfactory.ClientException: An error occurred (ClientException) when calling the RunTask operation: TaskDefinition not found.
without the task rev.Bianca Rosa
03/13/2023, 5:06 PMjohann
03/13/2023, 8:14 PMTaskDefinition not found.
? Wondering if it’s in launch_run
Bianca Rosa
03/13/2023, 8:15 PMBianca Rosa
03/13/2023, 8:15 PMbotocore.errorfactory.InvalidParameterException: An error occurred (InvalidParameterException) when calling the RunTask operation: TaskDefinition not found.
File "/usr/local/lib/python3.10/site-packages/dagster/_daemon/run_coordinator/queued_run_coordinator_daemon.py", line 335, in _dequeue_run
instance.run_launcher.launch_run(LaunchRunContext(dagster_run=run, workspace=workspace))
File "/usr/local/lib/python3.10/site-packages/dagster_aws/ecs/launcher.py", line 394, in launch_run
response = self.ecs.run_task(**run_task_kwargs)
File "/usr/local/lib/python3.10/site-packages/botocore/client.py", line 530, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.10/site-packages/ddtrace/contrib/botocore/patch.py", line 377, in patched_api_call
result = original_func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/botocore/client.py", line 960, in _make_api_call
raise error_class(parsed_response, operation_name)
johann
03/13/2023, 8:15 PMBianca Rosa
03/13/2023, 8:15 PMBianca Rosa
03/13/2023, 8:15 PMBianca Rosa
03/13/2023, 8:16 PMdagit = "1.1.21" # "1.0.12"
dagster = "1.1.21" # "1.0.12" # "0.15.5"
dagster-aws = "0.17.21" # "0.16.12"
dagster-docker = "0.17.21" # "0.16.12"
dagster-mysql = "0.17.21" # "0.16.12"
johann
03/13/2023, 8:25 PMBianca Rosa
03/13/2023, 8:25 PMBianca Rosa
03/13/2023, 8:26 PM0.15.9
before with one code location and its custom task def, but then upgraded to 1.1.21
to use 2 code locations each with its custom task defBianca Rosa
03/13/2023, 8:27 PMjohann
03/13/2023, 8:28 PMBianca Rosa
03/13/2023, 8:34 PMBianca Rosa
03/13/2023, 8:37 PMENV TASK_DEF_ARN=arn:aws:ecs:us-west-2:<redacted>:task-definition/$ENVIRONMENT-ml-workflows-runs
ENV CONTAINER_NAME=$ENVIRONMENT-ml-workflows-runs
ENV DAGSTER_CONTAINER_CONTEXT='{"ecs":{"task_definition_arn":"'$TASK_DEF_ARN'","container_name":"'$CONTAINER_NAME'"}}'
EXPOSE 4000
Bianca Rosa
03/13/2023, 8:37 PMBianca Rosa
03/13/2023, 8:38 PMDagsterInstance.get().info_dict()
on startup) ⬆️Bianca Rosa
03/13/2023, 8:38 PMBianca Rosa
03/13/2023, 8:39 PM# Account wide settings. These resources cannot be filtered.
{
Action = [
"ec2:DescribeNetworkInterfaces",
"ecs:ListAccountSettings",
"ecs:DescribeTaskDefinition",
"ecs:RegisterTaskDefinition",
"secretsmanager:ListSecrets"
],
Resource = [
"*"
],
Effect = "Allow"
},
Bianca Rosa
03/14/2023, 3:13 PMjohann
03/14/2023, 6:18 PMqa-ml-workflows-runs
task def specified in your run launcher, and in the container context of one grpc server you’re overriding that with another?johann
03/14/2023, 6:19 PMBianca Rosa
03/14/2023, 6:31 PMBianca Rosa
03/14/2023, 6:31 PMBianca Rosa
03/14/2023, 6:32 PMBianca Rosa
03/14/2023, 6:33 PMjohann
03/14/2023, 6:47 PMBianca Rosa
03/14/2023, 8:26 PMBianca Rosa
03/14/2023, 8:27 PMjohann
03/14/2023, 8:47 PMBianca Rosa
03/14/2023, 8:48 PMBianca Rosa
03/14/2023, 8:49 PMBianca Rosa
03/14/2023, 8:49 PMBianca Rosa
03/14/2023, 8:51 PMrun_launcher
setting, without the context override.johann
03/14/2023, 8:53 PMtask_definition_arn
works when set in the run launcher, but not in container context?Bianca Rosa
03/14/2023, 8:59 PMENV
instead of ONBUILD ENV
might have caused the issueBianca Rosa
03/14/2023, 9:00 PMBianca Rosa
03/14/2023, 9:01 PMArnoud van Dommelen
03/15/2023, 10:29 AMENV DAGSTER_GRPC_TIMEOUT_SECONDS=300
This environment variable should do this if I am not mistaking! I also use this variable to increase the schedule evaluation period :)