Skip to content

Asynchronous implementation #692

Discussion options

You must be logged in to vote

@captainyugi00 , hello. Yes, it is completely possible. Below is workflow in my test:

  • Firstly, init the work_queue to save transcribe request_id. For each transcribe request, we can create new request_id, put it to work_queue, then save request info (request_id, transcribe_option, input_file, status=queued, created_at, ...) to db (e.g. mongodb).
  • Next, create a Worker thread to process requests. This worker will read data from db then update result via request_id.
    Status of request included: queued => running => completed (or failed)

If you want to check the request status, simply create an api to query into db via request_id

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@captainyugi00
Comment options

@trungkienbkhn
Comment options

Answer selected by captainyugi00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants