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:
- Go to http://aind-data-transfer-service-dev/jobs
- Click on the Tasks popup for the latest job
- 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.
Screenshots
Additional context
Relevant code:
|
key=lambda t: (-t.priority_weight, t.map_index), |
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:
Expected behavior
The tasks should be in correct order, with "job start email" first.
Screenshots
Additional context
Relevant code:
aind-data-transfer-service/src/aind_data_transfer_service/server.py
Line 601 in ce40cdb