commands.check_system_health

Management command to perform a system health check and generate notifications for issues.

This command assesses the health of the system by performing various checks (to be implemented). If any issues are found, a critical notification is generated in the system to alert administrators.

Classes

Command

Management command to check the system's health and notify if issues are detected.

Module Contents

class commands.check_system_health.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: django.core.management.base.BaseCommand

Management command to check the system’s health and notify if issues are detected.

help = 'Check system health and create notifications if issues are found.'[source]
handle(*args, **kwargs)[source]

Entrypoint for the command.

Parameters:
  • *args (Any) – Additional positional arguments.

  • **kwargs (dict[str, Any]) – Additional keyword arguments.

Return type:

None

static _check_system_health()[source]

Task to perform a system health check.

Return type:

None