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.daniel
04/05/2023, 9:01 PMdaniel
04/05/2023, 9:10 PMTimothy Elder
04/05/2023, 9:10 PM@op
def extract_tableau(orgs):
image=f"<http://xxxxxxxxx.dkr.ecr.us-west-2.amazonaws.com/dagster_jobs:tableau_extractor-v0.2.0|xxxxxxxxx.dkr.ecr.us-west-2.amazonaws.com/dagster_jobs:tableau_extractor-v0.2.0>",
env_vars=[
f"AWS_ACCESS_KEY_ID={aws_access_key_id}",
f"AWS_SECRET_ACCESS_KEY={aws_secret_access_key}",
"EXTRACT_PATH=/opt/extract.hyper",
"PARQUET_PATH=xxxxxxxxxx/donor_bom.parquet",
"DATASOURCE_NAME=dagster_test",
"ORG_EXCLUDE=",
f"TABLEAU_USER={username}",
f"TABLEAU_PASS={password}",
f"TABLEAU_PROJECT=QA",
],
resources={
"limit_memory": "12Gi",
"request_memory": "12Gi",
"limit_cpu": 2,
"request_cpu": 2,
},
labels={
"<http://fanthreesixty.com/role|fanthreesixty.com/role>": "datasci",
"<http://fanthreesixty.com/app|fanthreesixty.com/app>": "airflow",
"<http://fanthreesixty.com/purpose|fanthreesixty.com/purpose>": "",
"<http://fanthreesixty.com/environment|fanthreesixty.com/environment>": "produsa",
},
timeout=600,
print(f"Tableau extract: {orgs}")
daniel
04/05/2023, 9:12 PMdaniel
04/05/2023, 9:12 PMTimothy Elder
04/05/2023, 9:17 PMdaniel
04/05/2023, 9:19 PMtask_definition:
sidecar_containers: []
(which is a no-op) should workdaniel
04/05/2023, 9:19 PMrun_launcher:
module: "dagster_aws.ecs"
class: "EcsRunLauncher"
config:
use_current_ecs_task_config: false
task_definition:
sidecar_containers: []
run_task_kwargs:
cluster: arn:aws:ecs:us-west-2:XXXXXXXXX:cluster/produsa-data-science
launchType: "FARGATE"
Timothy Elder
04/05/2023, 9:20 PMTimothy Elder
04/05/2023, 9:28 PMdaniel
04/05/2023, 9:28 PMTimothy Elder
04/05/2023, 9:32 PMdaniel
04/05/2023, 9:33 PMdaniel
04/05/2023, 9:33 PMTimothy Elder
04/05/2023, 9:35 PMdaniel
04/05/2023, 9:36 PMdaniel
04/05/2023, 9:37 PMdaniel
04/05/2023, 9:38 PMdaniel
04/05/2023, 9:38 PMdaniel
04/05/2023, 9:47 PMTimothy Elder
04/05/2023, 9:48 PMTimothy Elder
04/05/2023, 9:50 PMTimothy Elder
04/07/2023, 3:57 PM