def app_start(): sched.start() http_server = WSGIServer(('127.0.0.1', 5000), app) http_server.serve_forever()
from flask import Blueprint, render_template, redirect, request, jsonify from app import app from app import sched @sched.scheduled_job('cron', hour=0, minute=5, id='on_time_etl') # @sched.scheduled_job('cron', second='*/3', id='on_time_etl_first') def on_time_etl(): pass sched.start()
def app_start(): sched.start() http_server = WSGIServer(('192.168.1.163', 6000), app) http_server.serve_forever()