Skip to content

Using scheduled tasks

Mathias Stuhlmacher edited this page Apr 10, 2021 · 3 revisions

Using scheduled tasks

For functions for which automation makes sense, functions are created in the course of development that allow automation via Scheduled tasks by Django Q. How these are set up after creating an administrative user is described below.

Important: an user with Superuser status is required for creating Scheduled tasks.

Status overview

  • Modules:
    • dfirtrack_config.views.statushistory.statushistory_save_cron
  • Version: v0.4.5 or above

What it is good for

Statushistory entries may created / saved manually or on a regular basis. For automatic creation of statushistory entries use this function.

How to use it

You can find a button "Create scheduled task" with a clock icon on the status page.

This will open a new tab for a new scheduled task form pre-filled with the required function dfirtrack_config.views.statushistory.statushistory_save_cron. Choose the time as you prefer, e. g. one time a day.