Hi again! If I’m using a prefect task (such as Sno...
# ask-community
j
Hi again! If I’m using a prefect task (such as SnowflakeQuery or dbtshell) and want to set custom logging, how do I do that. For example, at the moment I have “Task ’SnowflakeQuery[52] Starting Run” …. “Task ’SnowflakeQuery[53] Starting Run” … “Task ’SnowflakeQuery[54] Starting Run” and instead I want to have “File load query file1.txt” ….. “File load query file2.text”. Is that possible? Can I just pass in names and mappings via the name task_args? Also, how do I set retries? Do I pass task_args too?
k
SnowflakeQuery
and all tasks in the task libraries can take in task args like retries and results and caching
For additional logging like that, maybe add a dynamic
task_run_name
like this ?
j
Excellent! That looks like it will wok. Thanks again
Can I add that task_run_name to the snowflakequery task?
k
Yeah you can in the
___init___