mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-30 11:45:48 +00:00
c24cc56fb0
4d7e5e531 we will set these at runtime 39c9e8785 templated SPIFF_SUBDOMAIN for keycloak 1a51f9091 update flask-bpmn 354e6edb1 Merge pull request #8 from sartography/feature/clean_up_sentry_errors 0c11a0b75 pyl passes w/ burnettk 9c57a876e avoid sending two errors to sentry w/ burnettk git-subtree-dir: spiffworkflow-backend git-subtree-split: 4d7e5e53185431b113eb7c038b687134499422c8
22 lines
540 B
Python
Executable File
22 lines
540 B
Python
Executable File
"""Start the appscheduler in blocking mode."""
|
|
import time
|
|
|
|
from apscheduler.schedulers.background import BlockingScheduler # type: ignore
|
|
from spiffworkflow_backend import create_app
|
|
from spiffworkflow_backend import start_scheduler
|
|
from spiffworkflow_backend.helpers.db_helper import try_to_connect
|
|
|
|
|
|
def main() -> None:
|
|
"""Main."""
|
|
app = create_app()
|
|
start_time = time.time()
|
|
with app.app_context():
|
|
try_to_connect(start_time)
|
|
|
|
start_scheduler(app, BlockingScheduler)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|