queue
This commit is contained in:
@@ -5,5 +5,5 @@ class Command(MessagingSupport):
|
||||
help = "starts file generator"
|
||||
queue_name = "files"
|
||||
|
||||
def consume(self, ch, method, properties, body):
|
||||
...
|
||||
def process(self, payload: dict):
|
||||
...
|
||||
|
@@ -10,8 +10,8 @@ class Command(MessagingSupport):
|
||||
help = "Tests solution"
|
||||
queue_name = "test"
|
||||
|
||||
def consume(self, ch, method, properties, body):
|
||||
id = int(str(body, encoding="utf-8"))
|
||||
def process(self, payload: dict):
|
||||
id = payload['id']
|
||||
print(f"Received id {id}")
|
||||
solution = Solution.objects.get(id=id)
|
||||
try:
|
||||
|
Reference in New Issue
Block a user