Skip to content

Fix data_sync startup crash by properly invoking async main#11879

Merged
KevinHuSh merged 2 commits into
infiniflow:mainfrom
davidlcarrascal:fix/bug-data-sync
Dec 11, 2025
Merged

Fix data_sync startup crash by properly invoking async main#11879
KevinHuSh merged 2 commits into
infiniflow:mainfrom
davidlcarrascal:fix/bug-data-sync

Conversation

@davidlcarrascal

@davidlcarrascal davidlcarrascal commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

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 #11878

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Dec 10, 2025
@KevinHuSh

Copy link
Copy Markdown
Collaborator

Appreciations!
Please remove the unnecessary code format alterations.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Dec 10, 2025
@davidlcarrascal

Copy link
Copy Markdown
Contributor Author

Appreciations! Please remove the unnecessary code format alterations.

Done!

@KevinHuSh KevinHuSh added the ci Continue Integration label Dec 11, 2025
@KevinHuSh KevinHuSh marked this pull request as draft December 11, 2025 01:48
@KevinHuSh KevinHuSh marked this pull request as ready for review December 11, 2025 01:48
@KevinHuSh KevinHuSh merged commit a6afb7d into infiniflow:main Dec 11, 2025
2 checks passed
yngvarhuang pushed a commit to yngvarhuang/ragflow that referenced this pull request Dec 13, 2025
…support_encrypted_files_20251209

* commit '44dec89f1fd6eb98f2d8d5c0137074990a09a99c': (28 commits)
  Fix: aspose-slide issue. (infiniflow#11935)
  Fix: raptor don't have attribute chat (infiniflow#11936)
  Feat: Add GPT-5.2 & pro (infiniflow#11929)
  Refa: refactor metadata filter (infiniflow#11907)
  Feat: Displaying the file option in the webhook's request body infiniflow#10427 (infiniflow#11928)
  Fix: forget-reset password (infiniflow#11927)
  Feature/docs generator (infiniflow#11858)
  Fix: correct metadata update behavior (infiniflow#11919)
  Docs: How to use restful API to update or delete metadata (infiniflow#11912)
  Feat: Add box connector (infiniflow#11845)
  Feat: Flatten the request schema of the webhook infiniflow#10427 (infiniflow#11917)
  feat: Add Single Bucket Mode for MinIO/S3 (infiniflow#11416)
  Fix: tokenizer issue. (infiniflow#11902)
  Feat: Add mineru as a model manufacturer to the system. infiniflow#10621 (infiniflow#11903)
  Refa: treat MinerU as an OCR model 2 (infiniflow#11905)
  Add DeepseekV3.2 of Tongyi-Qianwen and remove unused code (infiniflow#11898)
  Fix:async issue and sensitive logging (infiniflow#11895)
  Added semi-automatic mode to the metadata filter (infiniflow#11886)
  Fix data_sync startup crash by properly invoking async main (infiniflow#11879)
  MinerU supports for the new backend vlm-mlx-engine (infiniflow#11864)
  ...

# Conflicts:
#	docker/.env
#	pyproject.toml
clifftseng pushed a commit to clifftseng/ragflow that referenced this pull request Feb 9, 2026
…ow#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 infiniflow#11878

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Nightly build: data_sync_0 crashes at startup

2 participants