Skip to content

Release v0.4.3

Choose a tag to compare

@oranheim oranheim released this 27 May 09:16
· 24 commits to master since this release

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_complete parameter to TaskExecutor.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