-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
temporarily disable crontab for testing
- Loading branch information
=
committed
Jul 7, 2024
1 parent
6781abc
commit 3da5ee3
Showing
4 changed files
with
31 additions
and
26 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
# m h dom mon dow command | ||
# Set lots as ended and declare a winner | ||
* * * * * /home/app/web/task.sh endauctions | ||
* * * * * /home/app/web/task.sh info | ||
@REM # Set lots as ended and declare a winner | ||
@REM * * * * * /home/app/web/task.sh endauctions | ||
|
||
# Send reminder emails about watched items | ||
*/15 * * * * /home/app/web/task.sh sendnotifications | ||
@REM # Send reminder emails about watched items | ||
@REM */15 * * * * /home/app/web/task.sh sendnotifications | ||
|
||
# welcome and print erminder emails | ||
*/15 * * * * /home/app/web/task.sh auctiontos_notifications | ||
@REM # welcome and print erminder emails | ||
@REM */15 * * * * /home/app/web/task.sh auctiontos_notifications | ||
|
||
# Email users about invoices | ||
*/15 * * * * /home/app/web/task.sh email_invoice | ||
@REM # Email users about invoices | ||
@REM */15 * * * * /home/app/web/task.sh email_invoice | ||
|
||
# Update leaderboard | ||
* 23 * * * /home/app/web/task.sh update_breederboard | ||
@REM # Update leaderboard | ||
@REM * 23 * * * /home/app/web/task.sh update_breederboard | ||
|
||
# send email | ||
* * * * * /home/app/web/task.sh send_queued_mail | ||
@REM # send email | ||
@REM * * * * * /home/app/web/task.sh send_queued_mail | ||
|
||
# send auction emails | ||
*/4 * * * * /home/app/web/task.sh auction_emails | ||
@REM # send auction emails | ||
@REM */4 * * * * /home/app/web/task.sh auction_emails | ||
|
||
# send notifications about unread chats | ||
0 10 * * * /home/app/web/task.sh email_unseen_chats | ||
@REM # send notifications about unread chats | ||
@REM 0 10 * * * /home/app/web/task.sh email_unseen_chats | ||
|
||
# weekly promo email sent on Wednesday | ||
30 9 * * 3 /home/app/web/task.sh weekly_promo | ||
@REM # weekly promo email sent on Wednesday | ||
@REM 30 9 * * 3 /home/app/web/task.sh weekly_promo | ||
|
||
# set user locations | ||
0 0 * * * /home/app/web/task.sh set_user_location | ||
@REM # set user locations | ||
@REM 0 0 * * * /home/app/web/task.sh set_user_location | ||
|
||
# check for duplicate page views | ||
*/15 * * * * /home/app/web/task.sh remove_duplicate_views | ||
@REM # check for duplicate page views | ||
@REM */15 * * * * /home/app/web/task.sh remove_duplicate_views |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# This file is called by cron jobs, it sets up the env for them, and then calls python manage.py with the argument passed to it. | ||
|
||
if [ $# -eq 0 ]; then | ||
echo "No argument provided, specify which script to run" >> /var/log/cron.log 2>&1 | ||
echo "No argument provided, specify which script to run" > /proc/1/fd/1 2>&1 | ||
exit 1 | ||
fi | ||
|
||
if [ -f /home/app/web/.env ]; then | ||
export $(grep -v '^#' /home/app/web/.env | xargs) | ||
else | ||
echo "No .env file found, env will not be set" >> /var/log/cron.log 2>&1 | ||
echo "No .env file found, env will not be set" > /proc/1/fd/1 2>&1 | ||
fi | ||
|
||
/usr/local/bin/python /home/app/web/manage.py $1 >> /var/log/cron.log 2>&1 | ||
/usr/local/bin/python /home/app/web/manage.py $1 > /proc/1/fd/1 2>&1 |