There are several commands that help to keep clean and keen the translation tasks list.
Generate the translation tasks from the existing data. It’s useful if we have installed TransManager in an already existing and running application.
python manage.py generate_tasks
Because there may be lots of translations tasks to generate, the process is called asyncronously, via the python-rq workers.
Delete orphan tasks¶
This commands deletes the tasks that no longer have a related main object. It is a command that can be executed from time to time or it can be added to the cron.
python manage.py delete_orphan_tasks
Command that notifies the translators of pending translation tasks. Its a command that, if we want our translator users notified of the pending tasks, we have to cron in order to send the nofitication email to them.
python manage.py notify_translators
Update number of words¶
Update the number of words to translate in every task. It counts the number of words of the original text to translate.
python manage.py update_number_of_words
Delete disabled parent tasks¶
This commands deletes the tasks that no longer have a parent enabled object. It is a command that can be executed from time to time or it can be added to the cron.
python manage.py remove_tasks_for_disbled_parents