Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

fix(17): Add timeout to auto unlock recurring tasks #16

Merged
gagantrivedi merged 3 commits intomainfrom
fix/locked-tasks
Jan 14, 2025
Merged

fix(17): Add timeout to auto unlock recurring tasks #16
gagantrivedi merged 3 commits intomainfrom
fix/locked-tasks

Conversation

@gagantrivedi
Copy link
Copy Markdown
Member

@gagantrivedi gagantrivedi commented Jan 6, 2025

Fixes #17 by picking up locked tasks for processing after a timeout.

@gagantrivedi gagantrivedi force-pushed the fix/locked-tasks branch 3 times, most recently from 28e82e6 to dc63661 Compare January 6, 2025 08:13
Comment thread task_processor/decorators.py
Comment thread task_processor/migrations/0012_add_locked_at_and_timeout.py
Comment thread task_processor/decorators.py
@gagantrivedi gagantrivedi changed the title fix(locked-tasks): wip fix(17/recurring-task-lock): Add timeout to auto unlock task Jan 6, 2025
@gagantrivedi gagantrivedi linked an issue Jan 6, 2025 that may be closed by this pull request
Comment thread task_processor/migrations/sql/0012_get_recurringtasks_to_process.sql Outdated
Comment thread task_processor/processor.py
@gagantrivedi gagantrivedi force-pushed the fix/locked-tasks branch 2 times, most recently from dfd51cd to 6e07161 Compare January 6, 2025 08:55
@gagantrivedi gagantrivedi marked this pull request as ready for review January 6, 2025 10:14
@gagantrivedi gagantrivedi requested review from a team and matthewelwell and removed request for a team January 6, 2025 10:14
Copy link
Copy Markdown
Contributor

@matthewelwell matthewelwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few fairly minor comments / questions, but overall this looks excellent 👌

Comment thread task_processor/models.py Outdated
Comment thread task_processor/migrations/0012_add_locked_at_and_timeout.py Outdated
Comment thread task_processor/migrations/sql/0012_get_recurringtasks_to_process.sql Outdated
Comment thread tests/unit/task_processor/test_unit_task_processor_processor.py
Comment thread tests/unit/task_processor/test_unit_task_processor_processor.py Outdated
@gagantrivedi gagantrivedi changed the title fix(17/recurring-task-lock): Add timeout to auto unlock task fix(locked_tasks): Add timeout to auto unlock tasks Jan 8, 2025
Comment thread tests/unit/task_processor/test_unit_task_processor_processor.py Outdated
Comment thread task_processor/migrations/sql/0012_get_tasks_to_process.sql Outdated
Comment thread task_processor/migrations/0012_add_locked_at_and_timeout.py
@gagantrivedi gagantrivedi changed the title fix(locked_tasks): Add timeout to auto unlock tasks fix(17): Add timeout to auto unlock recurring tasks Jan 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recurring Tasks can get stuck in locked status

2 participants