Clinical-Genomics / trailblazer

Keep track of and manage analyses
MIT License
6 stars 2 forks source link

Confusing Statuses for Pipelines that Uses NF Tower #503

Open RasmusBurge-CG opened 1 week ago

RasmusBurge-CG commented 1 week ago

As a TB user, I want accurate job status updates for NF Tower pipelines, So that I can clearly understand the progress of each job

Clarification: Pipelines using NF Tower (e.g., RNAFUSION, TOMTE, TAXPROFILER) do not operate with SLURM in the same way as other pipelines. Specifically, not all jobs are submitted simultaneously. This causes issues in the ‘Status’ field, as the analysis often appears to be 100% complete, even though NF Tower shows that the analysis is still in progress.

Image Image

Acceptance Criteria

Alt Criteria

Notes

Implementation plan

Vince-janv commented 21 hours ago

Technical refinement:

RasmusBurge-CG commented 33 minutes ago

To Work With the Swagger and Stage Tower

To create a bearer (token to be used for testing), go to Your tokens and create a new token. Paste that into the swagger website.
Tower uses something called "workspace", and you are going to need it if you want to see the response. Go to cg-tower-stage.scilifelab.se, open dev tools -> network -> (refresh the page), and find an item in the list called workspaces. The item below that entry is the workspace ID.

Newly Started Runs - What is the response?

Using: GET - /workflow/{workflowId}/progress

On a fresh started run, cheeky_engelbart. With no submitted jobs, no running or pending.

Gives:

{
  "progress": {
    "workflowProgress": {
      "cpus": 0,
      "cpuTime": 0,
      "cpuLoad": 0,
      "memoryRss": 0,
      "memoryReq": 0,
      "readBytes": 0,
      "writeBytes": 0,
      "volCtxSwitch": 0,
      "invCtxSwitch": 0,
      "cost": null,
      "loadTasks": 0,
      "loadCpus": 0,
      "loadMemory": 0,
      "peakCpus": 0,
      "peakTasks": 0,
      "peakMemory": 0,
      "executors": null,
      "dateCreated": "2024-11-14T12:16:54.54937892Z",
      "lastUpdated": "2024-11-14T12:16:54.549379412Z",
      "submitted": 0,
      "succeeded": 0,
      "running": 0,
      "failed": 0,
      "cached": 0,
      "pending": 0,
      "memoryEfficiency": 0,
      "cpuEfficiency": 0
    },
    "processesProgress": []
  }
}

Let's find out what request is sent to tower from TB.