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

Confusing help text in Worker.task_count field #205

Open
i386x opened this issue Jun 5, 2023 · 0 comments
Open

Confusing help text in Worker.task_count field #205

i386x opened this issue Jun 5, 2023 · 0 comments

Comments

@i386x
Copy link
Contributor

i386x commented Jun 5, 2023

Help text in Worker.task_count says Count of processed tasks, see

task_count = models.PositiveIntegerField(blank=True, default=0, help_text=_("Count of processed tasks.<br />This is a generated field."))
But in reality it records the count of opened tasks, see

kobo/kobo/hub/models.py

Lines 208 to 209 in 84434c5

tasks = Task.objects.opened().filter(worker=self)
self.task_count = tasks.count()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant