Skip to content

Fixes & updates to jobs #310

@mihow

Description

@mihow

Backend:

  • Update status_label from BE if there is an error
  • Add nested params {} object on stages with name, key & value so that stage details are complete (when in place update FE)
  • Add BE tests for failed jobs states
  • Add BE tests for job logs
  • Test deleting jobs more thoroughly. It appears to have strange behavior sometimes.
  • Add permissions check to only show jobs for projects that the current user is a member of.

Several of these issues are likely related to concurrency (multiple processes updating the same job without refreshing the state first). Some things to try: an "increment" function at the DB level for integer fields, refresh_from_db before save, update specific fields instead of whole object, check timestamps of last_updated before saving.

These issues seem to happen periodically but are hard to reproduce. Add tests for

  • Getting "no Job exists" error again when processing a single image. And job is stuck as pending (consider creating Job model instance from a Task rather than the other way around)
  • Job is reporting FAILURE status even through celery task is successful. But also it stopping immediately https://deploy-preview-379--ami-web.netlify.app/projects/46/jobs/618 - for both AMBER Panama collections tried.

Frontend:

  • Add "infinite progress bar" animation for jobs that will not know their progress percentage.
  • Add pipeline chooser for the Process Now quick action button on the capture detail page (will also refresh & filter existing detections)

Only semi-related issues, but capturing here because we worked on them in the initial jobs PR #286

  • Make score slider update num_detections in timeline items, in addition to actual detections on the current image
  • Explore ways to make the score slider more responsive (front end updates first)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions