Created
May 26, 2021 12:47
-
-
Save churnikov/b3044706fe6d629d1081499deaa4a99d to your computer and use it in GitHub Desktop.
Как можно переопределить метод start_task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class OneQPriority(OneQ): | |
def __init__(self, config, priority=None): | |
self.priority = priority | |
super().__init__(config) | |
def start_task(self, **kwargs): | |
kwargs["priority"] = kwargs.get("priority", self.priority) | |
super().start_task(**kwargs) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment