Skip to content

Instantly share code, notes, and snippets.

@bulkan
Created September 3, 2012 04:50
Show Gist options
  • 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

Related: rq/rq#126

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