예제 #1
0
파일: __init__.py 프로젝트: yetone/huey
 def __init__(self, name='huey', store_none=False, always_eager=False,
              location=None):
     if location is None:
         raise ValueError("Please specify a database file with the "
                          "'location' parameter")
     queue = SqliteQueue(name, location)
     result_store = SqliteDataStore(name, location)
     schedule = SqliteSchedule(name, location)
     super(SqliteHuey, self).__init__(
         queue=queue,
         result_store=result_store,
         schedule=schedule,
         events=None,
         store_none=store_none,
         always_eager=always_eager)
예제 #2
0
from huey import Huey
from huey.backends.sqlite_backend import SqliteQueue, SqliteDataStore

queue = SqliteQueue("queue", "db/queue.db")
result_store = SqliteDataStore("results", "db/results.db")

huey = Huey(queue, result_store=result_store)

settings = {
    'gsurl': 'gs://earthengine-public/landsat',
    'targetfolder': '/landsat'
}

# on cicdisk:
# /cicdisk/groups/landsat
예제 #3
0
파일: config.py 프로젝트: freuds/TISbackup
import os, sys
from huey.backends.sqlite_backend import SqliteQueue, SqliteDataStore
from huey.api import Huey, create_task

tisbackup_root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__)))
tasks_db = os.path.join(tisbackup_root_dir, "tasks.sqlite")
queue = SqliteQueue('tisbackups', tasks_db)
result_store = SqliteDataStore('tisbackups', tasks_db)
huey = Huey(queue, result_store, always_eager=False)