user.billing_job: change reschedule for payment_job from 2min to 30min

This commit is contained in:
Luna Mendes 2018-11-17 18:29:55 -03:00
parent cc535bb851
commit 1288e401ea
2 changed files with 8 additions and 2 deletions

View File

@ -10,6 +10,7 @@ from litecord.blueprints.user.billing import (
)
from litecord.snowflake import snowflake_datetime
from litecord.types import MINUTES
log = Logger(__name__)
@ -24,8 +25,8 @@ THRESHOLDS = {
async def _resched(app):
log.debug('waiting 2 minutes for job.')
await sleep(120)
log.debug('waiting 30 minutes for job.')
await sleep(30 * MINUTES)
app.sched.spawn(payment_job(app))

View File

@ -1,5 +1,10 @@
# size units
KILOBYTES = 1024
# time units
MINUTES = 60
HOUR = 60 * MINUTES
class Color:
"""Custom color class"""