UMass-Rescue / UMass-Rescue/RescueBox

Rescuebox deal with long running task for a model operation

Open
#58 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

complex enhancement hackathon
Dominant language
Python
Stars
6
Forks
15
Avg merge
14h 42m
Merged PRs (30d)
7

Description

refer file model-app-service runTask() timeout: 1800000

this implied long running jobs ( sync ) mode can timeout.
one quick way to fix is increase this value

better long term fix is for fastapi to respond with 202 Accepted, taskid and User/UI poll to get status
is_async

refer : pipeline sample , this can be enhanced to support submit task , poll or get notify on progress and update UI method in run_pipeline_with_timeout()

or a websocket callback implementation to be notified on completion.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with model-app-service runTask() and the is_async reference in rb-lib/rb/lib/ml_service.py, then inspect run_pipeline_with_timeout() in rescuebox-pipeline/rescuebox_pipeline/rb_celery.py. Determine the intended timeout or asynchronous task flow; done should mean long-running model operations complete without timing out and the UI can receive or poll their status.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, python
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.