Skip to content

Commit e92d5f2

Browse files
fix: Reintroduce priority queue task arg (#395)
Co-authored-by: JWittmeyer <91723236+JWittmeyer@users.noreply.github.com>
1 parent 581adc0 commit e92d5f2

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

controller/data_block/manager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ def update_query_results(
9999
"project_id": str(data_block.project_id),
100100
"task_list": task_list,
101101
},
102-
project_id=str(data_block.project_id),
103102
)
104103
return results
105104

controller/task_master/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ def queue_task(
1111
user_id: str,
1212
task_type: enums.TaskType,
1313
task_info: Union[List[Dict[str, Any]], Dict[str, Any]],
14-
project_id: Optional[str] = None,
14+
priority: bool = False,
1515
) -> requests.Response:
1616

1717
task_payload = {
1818
"orgId": org_id,
1919
"userId": user_id,
2020
"taskType": task_type.value,
2121
"taskInfo": task_info,
22-
"projectId": project_id,
22+
"priority": priority,
2323
}
2424
return requests.put(f"{TASK_MASTER_URL}/task/queue", json=task_payload)
2525

fast_api/routes/project_setting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def calculate_user_attribute_all_records(
248248
"attribute_id": str(body.attribute_id),
249249
"data_block_id": body.data_block_id,
250250
},
251-
True,
251+
priority=True,
252252
)
253253

254254
return get_silent_success()

0 commit comments

Comments
 (0)