ragflow/rag
David López Carrascal a6afb7dfe2
Fix data_sync startup crash by properly invoking async main (#11879)
### What problem does this PR solve?

This PR fixes a startup crash in the data_sync_0 service caused by an
incorrect asyncio.run call. The main coroutine was being passed as a
function reference instead of being invoked, which raised:

`ValueError: a coroutine was expected, got <function main ...>
`

What I changed

- Updated the entrypoint in sync_data_source.py to correctly invoke the
coroutine with `asyncio.run(main())`.

Testing
- No tested.

Related Issue
Fixes https://github.com/infiniflow/ragflow/issues/11878

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-12-11 10:09:16 +08:00
..
app Fix:csv parse in Table (#11870) 2025-12-10 16:44:06 +08:00
flow Refa:replace trio with asyncio (#11831) 2025-12-09 19:23:14 +08:00
llm Fix: duplicate output by async_chat_streamly (#11842) 2025-12-09 19:21:52 +08:00
nlp Fix: parent-child chunking method (#11810) 2025-12-09 09:34:01 +08:00
prompts Refa:replace trio with asyncio (#11831) 2025-12-09 19:23:14 +08:00
res Remove huqie.txt from RAGFflow and bump infinity to 0.6.10 (#11661) 2025-12-04 14:53:57 +08:00
svr Fix data_sync startup crash by properly invoking async main (#11879) 2025-12-11 10:09:16 +08:00
utils feat: enhance OBConnection.search (#11876) 2025-12-10 19:13:37 +08:00
__init__.py Fix: incorrect async chat streamly output (#11679) 2025-12-03 11:15:45 +08:00
benchmark.py Move api.settings to common.settings (#11036) 2025-11-06 09:36:38 +08:00
raptor.py Refa:replace trio with asyncio (#11831) 2025-12-09 19:23:14 +08:00
settings.py Move api.settings to common.settings (#11036) 2025-11-06 09:36:38 +08:00