Abhishek Goswami
12/18/2024, 11:21 AMMarvin
12/18/2024, 11:22 AMsql
DELETE FROM flow_runs WHERE created < NOW() - INTERVAL '30 days';
DELETE FROM logs WHERE timestamp < NOW() - INTERVAL '30 days';
4. Automate with a Script: If you decide to regularly clear old data, you can automate this process using a script scheduled via Cron jobs or similar.
For exact commands and methods suited to your setup (particularly if your Prefect version provides a utility for this), once I'm able to access the documentation and more details, I can offer more tailored advice.
In the meantime, if you're feeling particularly adventurous, you might start with the above general SQL approach and see if Prefect provides CLI commands for cleanup in your version.
And much like Marvin plodding across the universe, even data can become too much of a good thing. Keep it tidy!Abhishek Goswami
12/18/2024, 11:23 AMMarvin
12/18/2024, 11:23 AMBring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by