Skip to content

Commit

Permalink
Add priority to Task body
Browse files Browse the repository at this point in the history
  • Loading branch information
catileptic committed Oct 2, 2023
1 parent a308782 commit e53f8fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions servicelayer/taskqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Task:
operation: str
context: dict
payload: dict
priority: int
collection_id: Optional[str] = None

@property
Expand Down Expand Up @@ -211,6 +212,7 @@ def get_task(body, delivery_tag) -> Task:
operation=body["operation"],
context=body["context"] or {},
payload=body["payload"] or {},
priority=body["priority"] or 0,
)


Expand Down

0 comments on commit e53f8fb

Please sign in to comment.