Coverage for functions \ flipdare \ generated \ shared \ backend \ app_job_group.py: 100%
0 statements
« prev ^ index » next coverage.py v7.13.0, created at 2026-05-08 12:22 +1000
« prev ^ index » next coverage.py v7.13.0, created at 2026-05-08 12:22 +1000
1#!/usr/bin/env python
2#
3# Copyright (c) 2026 Flipdare Pty Ltd. All rights reserved.
4#
5# This file is part of Flipdare's proprietary software and contains
6# confidential and copyrighted material. Unauthorised copying,
7# modification, distribution, or use of this file is strictly
8# prohibited without prior written permission from Flipdare Pty Ltd.
9#
10# This software includes third-party components licensed under MIT,
11# BSD, and Apache 2.0 licences. See THIRD_PARTY_NOTICES for details.
12#
13# NOTE: THIS FILE IS AUTO GENERATED. DO NOT EDIT.
14#
15# Generated by codegen_models.py
16#
17# Modify 'codegen_models.py'
18# and re-run the script above to update.
19#
21# pragma: no cover
22from enum import StrEnum
25class AppJobGroup(StrEnum):
26 """App Job Group"""
28 SCHEDULED = "scheduled"
29 USER_TRIGGER = "user_trigger"
30 CHAT_TRIGGER = "chat_trigger"
31 DARE_TRIGGER = "dare_trigger"
32 FRIEND_TRIGGER = "friend_trigger"
33 GROUP_TRIGGER = "group_trigger"
34 ISSUE_TRIGGER = "issue_trigger"
35 FLAG_TRIGGER = "flag_trigger"
36 PLEDGE_TRIGGER = "pledge_trigger"
37 CONTENT_TRIGGER = "content_trigger"
38 USER_CRON = "user_cron"
39 DARE_CRON = "dare_cron"
40 FRIEND_CRON = "friend_cron"
41 GROUP_CRON = "group_cron"
42 ISSUE_CRON = "issue_cron"
43 FLAG_CRON = "flag_cron"
44 PAYMENT_CRON = "payment_cron"
45 CONTENT_CRON = "content_cron"
46 RESTRICTION_CRON = "restriction_cron"
47 SEARCH_CRON = "search_cron"
48 SYSTEM_CRON = "system_cron"
49 REPORT_CRON = "report_cron"
50 COMPLIANCE_CRON = "compliance_cron"
52 # ---- Convenience predicates -----------------------------------------
54 @property
55 def is_trigger(self) -> bool:
56 return self.value.endswith("_triggers")
58 @property
59 def is_cron(self) -> bool:
60 return self.value.endswith("_crons")