ragflow/rag/svr
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
..
cache_file_svr.py Refactor function name (#11210) 2025-11-12 19:00:15 +08:00
discord_svr.py Use consistent log file names, introduced initLogger (#3403) 2024-11-14 17:13:48 +08:00
sync_data_source.py Fix data_sync startup crash by properly invoking async main (#11879) 2025-12-11 10:09:16 +08:00
task_executor.py Refa:replace trio with asyncio (#11831) 2025-12-09 19:23:14 +08:00