Skip to content

Estimated Remaining Time and Progress are 0 #667

@vnandan

Description

@vnandan

Summary
Sending a request running a docker container does not return the Estimated Remaining Time and Progress Percentage as expected.

Steps To Reproduce

  1. Pull and docker up the container from latest image
  2. Sending a request to POST file. curl --location 'http://localhost:3001/api/v1/document' --form 'file=@"/Users/vipul/Desktop/myfile.pdf"'
  3. Receive queue id.
  4. Send request
    curl --location 'http://localhost:3001/api/v1/queue/69aff27ca931be0bfbed53ce580e5d'
  5. Response
{
    "estimated-remaining-time": null,
    "progress-percentage": 0,
    "start-date": "2023-05-11T11:50:38.172Z",
    "status": "executing command: python3 /usr/local/bin/pdf2txt.py -p 1,2,3,4,5,6,7,8,9,10,11,12,13,14 --detect-vertical -R 0 -c utf-8 -t xml --word-margin 0.2 -o /tmp/fdf720d32c89e86f83d95a9acaf95c.xml /tmp/82e9879b46a7f41aabe5a3dd9870f9.pdf"
}

Expected behavior
Estimated value of remaining time and progress percentage for UI.

Image Used:
latest tag

Tested via a Python Script and Postman

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions