Exemplo n.º 1
0
def app_start():
    sched.start()
    http_server = WSGIServer(('127.0.0.1', 5000), app)
    http_server.serve_forever()
Exemplo n.º 2
0
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()
Exemplo n.º 3
0
def app_start():
	sched.start()
	http_server = WSGIServer(('192.168.1.163', 6000), app)
	http_server.serve_forever()