INNER CODE UNIT · Python

_execute_task_with_context

evolution-foundation/evo-nexus · dashboard/backend/app.py:1102

    def _execute_task_with_context(task_id):
        with app.app_context():
            from routes.tasks import _execute_task
            _execute_task(task_id)

    def _poll_scheduled_tasks():
        """Lightweight thread that only polls ScheduledTask — no routine scheduling."""
        import time as _time
        while True:
            with app.app_context():
                _run_pending_tasks()
            _time.sleep(30)

    task_thread = threading.Thread(target=_poll_scheduled_tasks, daemon=True, name="task-poller")
    task_thread.start()

    # Dev mode: EVONEXUS_DEV=1 enables Flask's auto-reloader so edits to
    # dashboard/backend/*.py take effect without a manual restart. Disabled by

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…