sparse-pizza-79993
11/23/2023, 1:28 PMpyodbc
, however it appears this is not available on the generic image that is user for those kinds of tasks. This makes sense given that this also requires a custom driver from MS to be installed to be useful.
Is it possible to swap out the docker image for SQLAlchemyTask
? If so, how should I extend or build a new docker image for use with MSSQL?freezing-airport-6809
freezing-airport-6809
tall-lock-23197
freezing-airport-6809
freezing-airport-6809
sparse-pizza-79993
02/02/2024, 10:22 AMcontainer_image
on the existing SQLAlchemyTask
to use the image specified for the rest of the workflow, however I am getting an error like this:
couldn't parse image reference "{{.images.default.fqn}}:{{.images.default.tag}}": invalid reference format
The errors above are returned from Kubernetes so it looks like the SQLAlchemyTask
is not resolving the templates. Any idea how I can get SQLAlchemyTask
to run with the image passed in with --image
without hard coding it?
My config follows:
SQLAlchemyTask(
"example.hello_mssql.sql_task",
query_template="""
SELECT @@version version
""",
container_image="{{.images.default.fqn}}:{{.images.default.tag}}",
output_schema_type=DataSchema,
task_config=SQLAlchemyConfig(
...
),
secret_requests=[*secrets.values()],
)
sparse-pizza-79993
02/02/2024, 11:49 AMfreezing-airport-6809
freezing-airport-6809
freezing-airport-6809
tall-lock-23197
user
02/02/2024, 5:40 PMsparse-pizza-79993
02/07/2024, 12:42 PMsparse-pizza-79993
02/07/2024, 1:53 PM