ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

Fix data_sync startup crash by properly invoking async main

Open davidlcarrascal opened this issue 1 month ago • 2 comments

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)

davidlcarrascal avatar Dec 10 '25 10:12 davidlcarrascal

Appreciations! Please remove the unnecessary code format alterations.

KevinHuSh avatar Dec 10 '25 11:12 KevinHuSh

Appreciations! Please remove the unnecessary code format alterations.

Done!

davidlcarrascal avatar Dec 10 '25 12:12 davidlcarrascal