Skip to content

Commit

Permalink
tasks inherit priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet committed Nov 17, 2023
1 parent 03ad006 commit 027004f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions artemis/module_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def cached_get(self, url: str, cache_key: str) -> bytes:
return cache_result

def add_task(self, current_task: Task, new_task: Task) -> None:
new_task.priority = current_task.priority

new_task.set_task_parent(current_task)
new_task.merge_persistent_payload(current_task)

Expand Down

0 comments on commit 027004f

Please sign in to comment.