This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Description: Releases for this script are available at: | |
# https://gist.github.com/gorakhargosh/c3902d08a939995fb4af/ | |
# | |
# The above URL has a bit.ly link as: | |
# http://bit.ly/bhojo-config | |
# | |
# The script is intended to be written and reviewed in the repository | |
# but released as a gist at the abovementioned URL. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pendulum | |
import prefect | |
from dynaconf import settings | |
from prefect import schedules | |
from prefect.schedules import clocks | |
# Cron schedule to execute cleanup job. Currently set to run at 00:00 (UTC) | |
# every Sunday. | |
DATA_CLEANUP_SCHEDULE_CRON_STRING = "0 0 * * 0" |