Aymeric Augustin
Aymeric Augustin
Here's a custom `Queue` class that implements the approach I described above. ``` python from django.db import transaction from rq.queue import Queue DEFAULT = object() class OnCommitQueue(Queue): """ RQ Queue...
Note that this approach makes it impossible to return the job synchronously, since it isn't created until the database transaction commits and won't be created if the transaction fails.
Congratulations :-) The custom `Queue` class works just fine for now, no hurry!
Another use case: I use the `abbr`, `footnotes`, or `toc` extensions provided by the Python markdown package and I'd like to add a button to generate the corresponding markup.
Django 1.6 and 1.7 don't receive security updates anymore. I don't think you should refrain from merging this feature just because it doesn't work on these versions. I suggest to...
I'll try it in my current project and report back (hopefully today or tomorrow).
I tried the patch and unfortunately I couldn't make it work. I'm getting two kinds of errors: - some tests fail, apparently because of isolation issues between tests -- which...
I'm not comfortable with pytest's internal APIs, but the general scheme here should be: ``` python with transaction.atomic(): # run shared_db_wrapper fixtures for test in in tests: with transaction.atomic(): #...
Nope. I'll report my findings here if I find time to work on a solution. It isn't near the top of my TODO list.
I hear Django got fancy timezones support a few releases ago :D