Spaces:
Runtime error
Runtime error
add messages for debugger
Browse files
app.py
CHANGED
@@ -126,9 +126,12 @@ if __name__ == '__main__':
|
|
126 |
print(mode)
|
127 |
dev = mode == 'development'
|
128 |
if not dev:
|
|
|
129 |
scheduler = APScheduler()
|
130 |
scheduler.add_job(id='Update Dataset Repository',
|
131 |
func=update_repository, trigger='interval', seconds=300)
|
132 |
scheduler.start()
|
|
|
|
|
133 |
app.run(host='0.0.0.0', port=int(
|
134 |
os.environ.get('PORT', 7860)), debug=True, use_reloader=dev)
|
|
|
126 |
print(mode)
|
127 |
dev = mode == 'development'
|
128 |
if not dev:
|
129 |
+
print("Starting scheduler -- Running Production")
|
130 |
scheduler = APScheduler()
|
131 |
scheduler.add_job(id='Update Dataset Repository',
|
132 |
func=update_repository, trigger='interval', seconds=300)
|
133 |
scheduler.start()
|
134 |
+
else:
|
135 |
+
print("Not Starting scheduler -- Running Development")
|
136 |
app.run(host='0.0.0.0', port=int(
|
137 |
os.environ.get('PORT', 7860)), debug=True, use_reloader=dev)
|