Trenton H efe779b634 Chore: Cleanup command arguments and standardize process count handling (#4541)
Cleans up some command help text and adds more control over process count for command with a Pool
2023-11-09 11:46:37 -08:00

11 lines
273 B
Python

from django.core.management.base import BaseCommand
from paperless_mail import tasks
class Command(BaseCommand):
help = "Manually triggers a fetching and processing of all mail accounts"
def handle(self, *args, **options):
tasks.process_mail_accounts()