Skip to content

Commit 3d740af

Browse files
committed
fix(workers): increase SqliteHuey timeout to 30s
Increase from default 5s to 30s to handle concurrent pytest-xdist workers all initializing the Huey SQLite storage simultaneously.
1 parent 1ebd815 commit 3d740af

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/fourdpocket/workers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def _get_huey():
2121
name="4dpocket",
2222
filename=str(base_path / "huey_tasks.db"),
2323
immediate=False,
24+
timeout=30,
2425
)
2526
return _huey_instance
2627

0 commit comments

Comments
 (0)