Hi, I am looking for some help with prefect_sqlalc...
# prefect-integrations
Hi, I am looking for some help with prefect_sqlalchemy for how I could customize the sqlalchemy_execute task? Like giving a custom name, number of retries if it is possible
Hey @Tibs you can use
to change the settings of your task or flow like
Copy code
In [11]: from prefect_sqlalchemy.database import sqlalchemy_execute

In [12]: sqlalchemy_execute.name, sqlalchemy_execute.retries
Out[12]: ('sqlalchemy_execute', 0)

In [13]: my_new_task = sqlalchemy_execute.with_options(name="My SQL Alchemy Execute", retries=2)

In [14]: my_new_task.name, my_new_task.retries
Out[14]: ('My SQL Alchemy Execute', 2)
❤️ 1
Thanks a lot @Nate
🦜 1