Skip to content

Commit

Permalink
the field is called _tiger
Browse files Browse the repository at this point in the history
  • Loading branch information
charliewolf committed Jul 19, 2016
1 parent 6d6e04c commit 3936793
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasktiger/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ def from_id(self, tiger, queue, state, task_id, load_executions=0):
serialized_executions = []
# XXX: No timestamp for now
if serialized_data:
data = self._tiger.deserialize_data(serialized_data)
executions = [self._tiger.deserialize_data(e) for e in serialized_executions if e]
data = self.tiger.deserialize_data(serialized_data)
executions = [self.tiger.deserialize_data(e) for e in serialized_executions if e]
return Task(tiger, queue=queue, _data=data, _state=state,
_executions=executions)
else:
Expand Down Expand Up @@ -368,8 +368,8 @@ def tasks_from_queue(self, tiger, queue, state, skip=0, limit=1000,
results = pipeline.execute()

for serialized_data, serialized_executions, ts in zip(results[0], results[1:], tss):
data = self._tiger.deserialize_data(serialized_data)
executions = [self._tiger.deserialize_data.loads(e) for e in serialized_executions if e]
data = self.tiger.deserialize_data(serialized_data)
executions = [self.tiger.deserialize_data.loads(e) for e in serialized_executions if e]

task = Task(tiger, queue=queue, _data=data, _state=state,
_ts=ts, _executions=executions)
Expand All @@ -378,7 +378,7 @@ def tasks_from_queue(self, tiger, queue, state, skip=0, limit=1000,
else:
data = tiger.connection.mget([tiger._key('task', item[0]) for item in items])
for serialized_data, ts in zip(data, tss):
data = self._tiger.deserialize_data(serialized_data)
data = self.tiger.deserialize_data(serialized_data)
task = Task(tiger, queue=queue, _data=data, _state=state,
_ts=ts)
tasks.append(task)
Expand Down

0 comments on commit 3936793

Please sign in to comment.