Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/d/o/doora-HEAD/cleaner.py   doora(Download)
#-*-coding:utf-8-*-
 
from config import BUCKET_NAME, EXPIRE_TIME, REDIS_HOST, REDIS_PORT
from q import qiniu
 
def add_to_expire_queue(file_key, expire_in=EXPIRE_TIME):
    if not EXPIRE_TIME:
        return
 
    scheduler.enqueue_in(timedelta(minutes=expire_in), delete_file, file_key)