about workflow_node_executions #37032
Replies: 2 comments 6 replies
-
|
Yes, you can safely delete old data from the Option 1: Enable the built-in cleanup task Set these environment variables to enable the scheduled daily cleanup (runs at midnight):
Option 2: Enable the workflow log cleanup task There's also a second cleanup task (runs at 2:00 AM daily):
Option 3: Manual database deletion If you prefer to do it manually, you can run a SQL query like: DELETE FROM workflow_node_executions WHERE created_at < NOW() - INTERVAL '180 days';Be aware this could be slow on a very large table. Consider deleting in batches (e.g., 1000–5000 rows at a time) to avoid locking issues. Note: The built-in cleanup tasks use batch processing with random sleep intervals between batches to avoid overwhelming the database [3], so enabling them is the recommended approach. Regarding query performance: The table has indexes including one on To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
-
|
You can implement a cleanup job to delete entries older than six months in the DELETE FROM workflow_node_executions
WHERE execution_date < NOW() - INTERVAL '6 months';This SQL command will remove entries older than six months, helping improve query performance on the table. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
workflow_node_executions
May I ask, this table has a large number of entries, and the front end business query logs are very slow. This table is for executing actions, but I don't think it does much. Can I delete data that only retains half a year?
2. Additional context or comments
help me
Beta Was this translation helpful? Give feedback.
All reactions