def get_run_task_kwargs(self, run_config, tenant_id: str = None, taskdef=None, **kwargs): agent = ECSAgent(**kwargs) if tenant_id: agent.client._get_auth_tenant = MagicMock(return_value=tenant_id) flow_run = GraphQLResult({ "flow": GraphQLResult({ "storage": Local().serialize(), "id": "flow-id", "version": 1, "name": "Test Flow", "core_version": "0.13.0", }), "run_config": run_config.serialize(), "id": "flow-run-id", }) if taskdef is None: taskdef = agent.generate_task_definition(flow_run, run_config) return agent.get_run_task_kwargs(flow_run, run_config, taskdef)
def get_run_task_kwargs(self, run_config, **kwargs): agent = ECSAgent(**kwargs) flow_run = GraphQLResult({ "flow": GraphQLResult({ "storage": Local().serialize(), "run_config": run_config.serialize(), "id": "flow-id", "version": 1, "name": "Test Flow", "core_version": "0.13.0", }), "id": "flow-run-id", }) return agent.get_run_task_kwargs(flow_run, run_config)