Skip to content

Order of airflow tasks is inverted in UI #351

Description

@helen-m-lin

Describe the bug
There is a tasks modal that displays the airflow tasks for each job. The order is by priority weight. A change in the airflow service has reversed the priority weights assigned to each task, causing this bug.

To Reproduce
Steps to reproduce the behavior:

  1. Go to http://aind-data-transfer-service-dev/jobs
  2. Click on the Tasks popup for the latest job
  3. Observe that all the tasks are in reverse order, i.e. "job end email" task is first.

Expected behavior
The tasks should be in correct order, with "job start email" first.

  • Invert the sort lambda used in the transfer service for the priority weights
  • Verify that tasks are in correct order, i.e. follows order of tasks displayed in Airflow UI.

Screenshots

Image

Additional context
Relevant code:

key=lambda t: (-t.priority_weight, t.map_index),

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions