Quick question: if your existing code already has ...
# pacc-apr-30-may-1-2024
l
Quick question: if your existing code already has @retry decorator, and logging module and so on... what does prefect do with them? is it using them as some sort of internal config for its own (retry, logging ...) tools?
b
Hi @loz! I've heard of people creating their own decorators and using them in their Prefect scripts. I do believe they'll be respected if you'd like to use them in lieu of the Prefect decorator args (retries, log_prints, timeout, etc.). We typically encourage people to use the default Prefect decorators (@flow and @task) and available args, just to avoid any unexpected behavior with the orchestrator.
🙌 1
Without knowing too much about your logging module, I'm going to venture a guess and say that you can use it as well. Here's some logging documentation for you if you'd like to familiarize yourself with how Prefect logging works, and how you can customize your logging config