mirror of https://gitlab.com/litecord/litecord.git
user.billing_job: change reschedule for payment_job from 2min to 30min
This commit is contained in:
parent
cc535bb851
commit
1288e401ea
|
|
@ -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))
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
# size units
|
||||
KILOBYTES = 1024
|
||||
|
||||
# time units
|
||||
MINUTES = 60
|
||||
HOUR = 60 * MINUTES
|
||||
|
||||
|
||||
class Color:
|
||||
"""Custom color class"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue