https://prefect.io logo
i

Isaac Brodsky

10/14/2020, 11:38 PM
Hi, I was looking at the MySQLFetch task today and it seems like it does not allow parameterizing the connection details? That doesn’t seem to allow me to pass a parameter for the db name, or more to the point a secret parameter for the db password
z

Zanie

10/15/2020, 12:42 AM
Hi! It appears you are correct. This differs from our postgres task which puts the
password
in the
run
args (https://github.com/PrefectHQ/prefect/blob/master/src/prefect/tasks/postgres/postgres.py#L157). This would be a pretty quick fix — if you’re willing to submit a patch that’d be great! Otherwise I’ll open an issue for this. [minor disclaimer this is my first week so there may be a workaround for this that I do not know about!]
👍 1
Here’s a note to consider updating the example at https://github.com/PrefectHQ/prefect/blob/master/examples/task_library/mysql/mysql_flow.py to use a parameterized secret