Skip to content

Conversation

@weargoggles
Copy link
Contributor

using worker processes means sqlite, in-memory database or not, is no longer suitable for testing or production use by this project.

the tests were attempting to set the created date upon creation, which will not
work per the Django docs for an auto_now_add field: "Note that the current date
is always used; it’s not just a default value that you can override." -
https://docs.djangoproject.com/en/1.8/ref/models/fields/#django.db.models.DateField.auto_now_add

The tests seemed to be looking for the oldest ready job, so adjusted the model's
default ordering to compensate.
@weargoggles
Copy link
Contributor Author

@j4mie

@j4mie
Copy link
Member

j4mie commented Oct 16, 2015

:shipit:

weargoggles pushed a commit that referenced this pull request Oct 16, 2015
@weargoggles weargoggles merged commit 5dfa656 into jobs-in-child-processes Oct 16, 2015
@weargoggles weargoggles deleted the jobs-in-child-processes-tested-with-mysql branch October 16, 2015 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants