mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-11-30 21:13:45 +00:00
fix: add cypress tests to CI [skip ci]
This commit is contained in:
@@ -8,6 +8,8 @@ import logging
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
from api.backend.database.startup import init_database
|
||||
|
||||
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
@@ -41,6 +43,9 @@ async def process_job():
|
||||
|
||||
async def main():
|
||||
LOG.info("Starting job worker...")
|
||||
|
||||
init_database()
|
||||
|
||||
while True:
|
||||
await process_job()
|
||||
await asyncio.sleep(5)
|
||||
|
||||
Reference in New Issue
Block a user