Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: initial work to separate task processor from main repository #1

Merged
merged 20 commits into from
Feb 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions task_processor/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@


class TaskManager(Manager):
def get_tasks_to_process(self, num_tasks):
def get_tasks_to_process(self, num_tasks: int):

Choose a reason for hiding this comment

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

Nit: missing return type here and below

return self.raw("SELECT * FROM get_tasks_to_process(%s)", [num_tasks])


class RecurringTaskManager(Manager):
def get_tasks_to_process(self, num_tasks):
def get_tasks_to_process(self, num_tasks: int):
return self.raw("SELECT * FROM get_recurringtasks_to_process(%s)", [num_tasks])
Loading