We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0122070 commit 2718224Copy full SHA for 2718224
gns3server/db/tasks.py
@@ -77,7 +77,7 @@ async def connect_to_db(app: FastAPI) -> None:
77
78
db_path = os.path.join(Config.instance().config_dir, "gns3_controller.db")
79
db_url = os.environ.get("GNS3_DATABASE_URI", f"sqlite+aiosqlite:///{db_path}")
80
- engine = create_async_engine(db_url, connect_args={"check_same_thread": False}, future=True)
+ engine = create_async_engine(db_url, connect_args={"check_same_thread": False, "timeout": 20}, future=True)
81
alembic_cfg = config.Config()
82
alembic_cfg.set_main_option("script_location", "gns3server:db_migrations")
83
#alembic_cfg.set_main_option('sqlalchemy.url', db_url)
0 commit comments