Hi all, is it possible to have daemon running in F...
# deployment-ecs
Hi all, is it possible to have daemon running in Fargate, but launching the tasks in ec2?
When I'm running daemon in ec2 there is no problem with running tasks in ec2, but when I deploy daemon to fargate I get the error: failed because LOCATION: None' when trying to run the task. Did anybody have similar problem?
hey jakub you should be able to do this by deploying an agent with a fargate task def and configuring the
to use EC2 https://docs.dagster.io/master/deployment/guides/aws#customizing-the-launched-runs-task
is there a stack trace you could share with the error you ran into?
Here is the error:
Copy code
Caught an unrecoverable error while dequeuing the run. Marking the run as failed and dropping it from the queue
Exception: [Exception('Task arn:aws:ecs:eu-west-1:482390611100:container-instance/768ce89e9a5b4126956163fd7f618a24 failed because LOCATION: None'), Exception('Task arn:aws:ecs:eu-west-1:482390611100:container-instance/e991518d307f47e29c37436cd8f0a0a1 failed because LOCATION: None')]

Stack Trace:
  File "/usr/local/lib/python3.9/site-packages/dagster/_daemon/run_coordinator/queued_run_coordinator_daemon.py", line 331, in _dequeue_run
    instance.run_launcher.launch_run(LaunchRunContext(dagster_run=run, workspace=workspace))
,  File "/usr/local/lib/python3.9/site-packages/dagster_aws/ecs/launcher.py", line 412, in launch_run
    raise Exception(exceptions)
I followed https://docs.dagster.io/master/deployment/guides/aws#customizing-the-launched-runs-task but This only works if the daemon is also deployed on ec2. I think it may be connected with 'requiredcompetibilities' of a ecs taskdef