Skip to content

Instantly share code, notes, and snippets.

@foxmask
Last active August 29, 2015 13:56
Show Gist options
  • Save foxmask/9113543 to your computer and use it in GitHub Desktop.
Save foxmask/9113543 to your computer and use it in GitHub Desktop.
multiprocess with django and postgresql
$ ./fire.py
Traceback (most recent call last):
File "./fire.py", line 148, in <module>
main()
File "./fire.py", line 142, in main
result = pool.map(go, trigger)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 250, in map
return self.map_async(func, iterable, chunksize).get()
File "/usr/lib/python2.7/multiprocessing/pool.py", line 554, in get
raise self._value
django_th.models.DoesNotExist: UserService matching query does not exist.
$ ./fire.py
Traceback (most recent call last):
File "./fire.py", line 148, in <module>
main()
File "./fire.py", line 142, in main
result = pool.map(go, trigger)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 250, in map
return self.map_async(func, iterable, chunksize).get()
File "/usr/lib/python2.7/multiprocessing/pool.py", line 554, in get
raise self._value
KeyError: '1'
$ ./fire.py
Traceback (most recent call last):
File "./fire.py", line 148, in <module>
main()
File "./fire.py", line 142, in main
result = pool.map(go, trigger)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 250, in map
return self.map_async(func, iterable, chunksize).get()
File "/usr/lib/python2.7/multiprocessing/pool.py", line 554, in get
raise self._value
django_th.models.DoesNotExist: ServicesActivated matching query does not exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment