-
-
Save nvie/3607425 to your computer and use it in GitHub Desktop.
rq job attributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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