Skip to content

Instantly share code, notes, and snippets.

@nvie
Forked from bulkan/gist:3606776
Created September 3, 2012 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvie/3607425 to your computer and use it in GitHub Desktop.
Save nvie/3607425 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'>
print job.my_attr
"['one', 'two']" # should be unpickled to a list, not a str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment