Skip to content

Commit

Permalink
disable tl_jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
itsthejoker committed Jul 7, 2023
1 parent a019541 commit 17456ec
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions bubbles/tl_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,49 +35,49 @@
# regular_interval = timedelta(seconds=4)


class WelcomePing(TLJob):
def job(self) -> None:
welcome_ping_callback()

class Meta:
start_interval = TRIGGER_4_HOURS_AGO - datetime.now(tz=timezone.utc)
regular_interval = timedelta(hours=4)


class GetInProgressPosts(TLJob):
def job(self) -> None:
get_in_progress_callback()

class Meta:
start_interval = TRIGGER_4_HOURS_AGO - datetime.now(tz=timezone.utc)
regular_interval = timedelta(hours=4)

# class WelcomePing(TLJob):
# def job(self) -> None:
# welcome_ping_callback()
#
# class Meta:
# start_interval = TRIGGER_4_HOURS_AGO - datetime.now(tz=timezone.utc)
# regular_interval = timedelta(hours=4)

class CheckForBanbots(TLJob):
def job(self) -> None:
banbot_check_callback()

class Meta:
start_interval = TRIGGER_12_HOURS_AGO - datetime.now(tz=timezone.utc)
regular_interval = timedelta(hours=12)
# class GetInProgressPosts(TLJob):
# def job(self) -> None:
# get_in_progress_callback()
#
# class Meta:
# start_interval = TRIGGER_4_HOURS_AGO - datetime.now(tz=timezone.utc)
# regular_interval = timedelta(hours=4)


class WelcomeVolunteersInProgress(TLJob):
def job(self) -> None:
periodic_ping_in_progress_callback()
# class CheckForBanbots(TLJob):
# def job(self) -> None:
# banbot_check_callback()
#
# class Meta:
# start_interval = TRIGGER_12_HOURS_AGO - datetime.now(tz=timezone.utc)
# regular_interval = timedelta(hours=12)

class Meta:
start_interval = TRIGGER_YESTERDAY - datetime.now(tz=timezone.utc)
regular_interval = timedelta(days=1)

# class WelcomeVolunteersInProgress(TLJob):
# def job(self) -> None:
# periodic_ping_in_progress_callback()
#
# class Meta:
# start_interval = TRIGGER_YESTERDAY - datetime.now(tz=timezone.utc)
# regular_interval = timedelta(days=1)

class TranscriptionCheckPing(TLJob):
def job(self) -> None:
transcription_check_ping_callback()

class Meta:
start_interval = TRIGGER_12_HOURS_AGO - datetime.now(tz=timezone.utc)
regular_interval = timedelta(hours=12)
# class TranscriptionCheckPing(TLJob):
# def job(self) -> None:
# transcription_check_ping_callback()
#
# class Meta:
# start_interval = TRIGGER_12_HOURS_AGO - datetime.now(tz=timezone.utc)
# regular_interval = timedelta(hours=12)


class CheckModmail(TLJob):
Expand All @@ -86,7 +86,7 @@ def job(self) -> None:
modmail_callback()
except Exception as e:
tb_str = "".join(traceback.format_exception(None, e, e.__traceback__))
logging.error(f"Failed to check for rule changes: {e}\n{tb_str}")
logging.error(f"Failed to check for modmail: {e}\n{tb_str}")

class Meta:
start_interval = timedelta(seconds=0) # start now
Expand Down

0 comments on commit 17456ec

Please sign in to comment.