Commit c01422a0 by Őry Máté

vm: longer expire time for remote queries

nodes' rtc should be synchronized
parent b02c9fa7
...@@ -148,7 +148,7 @@ class Node(TimeStampedModel): ...@@ -148,7 +148,7 @@ class Node(TimeStampedModel):
If the result is not ready in timeout secs, return default value or If the result is not ready in timeout secs, return default value or
raise a TimeoutError.""" raise a TimeoutError."""
r = task.apply_async( r = task.apply_async(
queue=self.get_remote_queue_name('vm'), expires=timeout + 1) queue=self.get_remote_queue_name('vm'), expires=timeout + 60)
try: try:
return r.get(timeout=timeout) return r.get(timeout=timeout)
except TimeoutError: except TimeoutError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment