Repository navigation
Release v0.4.3
Cached Task Completion Callbacks
🚀 New Features
- Completion callbacks for cached tasks: Cached results now trigger completion callbacks just like non-cached tasks
- Improved cache key handling: Separated normal cache keys from task-specific entry IDs for better consistency
🔧 Changes
- Added
on_completeparameter toTaskExecutor.execute_task() - Enhanced cache key generation and invalidation logic
- Added tests for cached task completion callbacks
🔄 Migration
- Breaking behavioral change: Completion callbacks will now fire for cached tasks (previously they didn't)
- If your code relies on completion callbacks only firing for non-cached tasks, you may need to adjust your logic
- All other functionality remains backward compatible
Files: executor.py, core.py, pool.py, test_task_worker.py