<s> from flask import Flask <EOL> from flask_apscheduler import APScheduler <EOL> class Config ( object ) : <EOL> JOBS = [ <EOL> { <EOL> '<STR_LIT:id>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:args>' : ( <NUM_LIT:1> , <NUM_LIT:2> ) , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : <NUM_LIT:10> <EOL> } <EOL> ] <EOL> SCHEDULER_ALLOWED_HOSTS = [ '<STR_LIT>' ] <EOL> SCHEDULER_VIEWS_ENABLED = True <EOL> def job1 ( a , b ) : <EOL> print ( str ( a ) + '<STR_LIT:U+0020>' + str ( b ) ) <EOL> app = Flask ( __name__ ) <EOL> app . config . from_object ( Config ( ) ) <EOL> scheduler = APScheduler ( ) <EOL> scheduler . init_app ( app ) <EOL> scheduler . start ( ) <EOL> app . run ( ) </s>
