You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Can't stop parsing document with progress at 0 or 1"
)
Document.progress is a float between 0.0 and 1.0, so the condition here will always be true. It makes parsing tasks unstoppable via SDK API. The correct condition should be doc[0].progress<=0.0 or doc[0].progress==1.0, i.e. can't stop tasks not started, finished, or stop with errors.
"Can't stop parsing document with progress at 0 or 100"
)
In the same file, the error string here should be "Can't start parsing document with progress unequal to 0.0" (or document with errors or already started parsing) right?
The text was updated successfully, but these errors were encountered:
ragflow/api/apps/sdk/doc.py
Lines 726 to 729 in c0799c5
Document.progress
is afloat
between 0.0 and 1.0, so the condition here will always be true. It makes parsing tasks unstoppable via SDK API. The correct condition should bedoc[0].progress<=0.0 or doc[0].progress==1.0
, i.e. can't stop tasks not started, finished, or stop with errors.ragflow/api/apps/sdk/doc.py
Lines 659 to 662 in c0799c5
In the same file, the error string here should be "Can't start parsing document with progress unequal to 0.0" (or document with errors or already started parsing) right?
The text was updated successfully, but these errors were encountered: