title: Why result in django RQ become : pickle data was truncated?
body: <p>I can't figure out whats wrong in my code. I want to defer queryset to django rq, please help me this is my code:</p>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>class PartnerCatalogueView(generic.ListView):
  """
  Browse all products in the catalogue based on vendor
  """
  template_name = 'catalogue/vendorku.html'
  # paginate_by = 9
  model = Product
  context_object_name = 'prod'
  
  def get_queryset(self, **kwargs):
      queryset = super(PartnerCatalogueView, self).get_queryset()
      queue = django_rq.get_queue('high', autocommit=True, async=True, default_timeout=360)
      u = self.kwargs['pk']
      a = queue.enqueue(long_runnig_task, u)
      time.sleep(0.2)
      queryset = a.result
      return queryset
  </code></pre>
  
  <p><strong>tasks.py</strong></p>
  
  <pre><code>@job("high", timeout=360)
  def long_runnig_task(s):
    o = Product.objects.filter(stockrecords__partner__id=s)
    return o
  </code></pre>
  
  <p>In worker terminal I get this result:</p>
  
  <pre><code>18:33:07 high: Job OK (c7f769d0-0d79-426e-8428-c6246ed736bf)
  18:33:07 Result: '&lt;ProductQuerySet [&lt;Product: tes&gt;, &lt;Product: OKe&gt;]&gt;'
  18:33:07 Result is kept for 500 seconds
  18:33:07 Sent heartbeat to prevent worker timeout. Next one should 
  arrive within 420 seconds.
  18:33:07 Sent heartbeat to prevent worker timeout. Next one should 
  arrive within 420 seconds.
  18:33:07 *** Listening on high,low...
  18:33:07 Sent heartbeat to prevent worker timeout. Next one should 
  arrive within 420 seconds.
  </code></pre>
  
  <p>In django terminal I got these results:</p>
  
  <pre><code>File "/Users/ibadi/.virtualenvs/myshop/lib/python3.6/site-packages/django/views/generic/list.py", line 160, in get
  self.object_list = self.get_queryset()
  File "/Users/ibadi/oke/grosire/apps/catalogue/views.py", line 33, in get_queryset
  queryset = a.result
  File "/Users/ibadi/.virtualenvs/myshop/lib/python3.6/site-packages/rq/job.py", line 395, in result
  self._result = loads(rv)
  _pickle.UnpicklingError: pickle data was truncated
  </code></pre>