forked from MarseyWorld/MarseyWorld
Check bot award timers more frequently.
Also: change to docker-compose.yml is to see if it'll fix the Github tests failing. Lumped in here because it's too dumb to make a commit for by itself.master
parent
197637b872
commit
d68f2a604a
|
@ -27,7 +27,7 @@ services:
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:12.3
|
image: postgres:12.3
|
||||||
command: ["postgres", "-c", "log_statement=all"]
|
#command: ["postgres", "-c", "log_statement=all"]
|
||||||
# uncomment this if u wanna output all SQL queries to the console
|
# uncomment this if u wanna output all SQL queries to the console
|
||||||
volumes:
|
volumes:
|
||||||
- "./schema.sql:/docker-entrypoint-initdb.d/00-schema.sql"
|
- "./schema.sql:/docker-entrypoint-initdb.d/00-schema.sql"
|
||||||
|
|
|
@ -21,20 +21,17 @@ def cron(every_5m, every_1h, every_1d, every_1mo):
|
||||||
if every_5m:
|
if every_5m:
|
||||||
lottery.check_if_end_lottery_task()
|
lottery.check_if_end_lottery_task()
|
||||||
offsitementions.offsite_mentions_task()
|
offsitementions.offsite_mentions_task()
|
||||||
g.db.commit()
|
|
||||||
|
|
||||||
if every_1h:
|
if every_1h:
|
||||||
pass
|
awards.award_timers_bots_task()
|
||||||
|
|
||||||
if every_1d:
|
if every_1d:
|
||||||
stats.generate_charts_task(const.SITE)
|
stats.generate_charts_task(const.SITE)
|
||||||
route_static.stats_cached()
|
route_static.stats_cached()
|
||||||
awards.award_timers_bots_task()
|
|
||||||
sub_inactive_purge_task()
|
sub_inactive_purge_task()
|
||||||
g.db.commit()
|
|
||||||
|
|
||||||
if every_1mo:
|
if every_1mo:
|
||||||
give_monthly_marseybux_task()
|
give_monthly_marseybux_task()
|
||||||
g.db.commit()
|
|
||||||
|
|
||||||
|
g.db.commit()
|
||||||
g.db.close()
|
g.db.close()
|
Loading…
Reference in New Issue