<@ULVA73B9P>, is it possible to change the name of...
# ask-marvin
n
@Marvin, is it possible to change the name of a task on execution instead of in the constructor?
m
The search results from the Prefect documentation do not seem to answer your question directly. Prefect's documentation often emphasizes dynamic workflows and the ability to handle tasks that need to be repeated an unknown number of times within a workflow. However, the specific concept of changing the name of a task during execution, rather than at construction time, was not explicitly covered in the excerpts provided. This may suggest that task renaming at runtime is not a commonly documented feature of Prefect, or it might be handled differently within the Prefect context. I would recommend checking the full API documentation or the community discussions for more details on whether this is possible and how it might be implemented. To assist you further, I can search GitHub issues to see if this has been discussed among the users or developers of Prefect, which might provide more insight. Shall I proceed with that?
n
@Marvin so what are the names I could control the task run name dynamically?
m
It appears that the ability to control or customize task run names dynamically might not be directly documented in the Prefect docs or reflect a specific feature called out clearly, as the provided excerpts do not contain such information. However, task run names typically can be set when defining tasks by using the
name
parameter, which could be dynamically generated by the code that creates the task. It's also possible that task run names can be influenced by the values passed to the task, via parameters or context, although this would require further exploration of the Prefect documentation or community practices. For additional insight, you might want to look into Task Runners or the logging patterns that Prefect uses to log task creation and execution, as per the excerpts provided. For more detailed information about controlling the task run name, you might need to look through the Prefect documentation or consider reaching out to the Prefect community. Here are some pages that might be relevant: - Prefect Task Runners - Dask and Ray Task Runners Guide