Skip to content

Instantly share code, notes, and snippets.

@bulkan
Created September 3, 2012 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bulkan/3606776 to your computer and use it in GitHub Desktop.
Save bulkan/3606776 to your computer and use it in GitHub Desktop.
rq job attributes
job = Job.fetch(job_id)
job.my_attr = ['one', 'two']
job.save()
# re-fetch job
job = Job.fetch(job_id)
print type(job.my_attr)
<type 'str'>
@nvie
Copy link

nvie commented Sep 3, 2012

Can you print the string's value?

@nvie
Copy link

nvie commented Sep 3, 2012

I see. This may be considered a bug. It will be addressed in RQ 0.3.3. Thanks for the catch!

@nvie
Copy link

nvie commented Sep 3, 2012

Related: rq/rq#126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment