def get_commit_mode():
RQ = getattr(settings, '<STR_LIT>', {})<EOL>return RQ.get('<STR_LIT>', True)<EOL>
Disabling AUTOCOMMIT causes enqueued jobs to be stored in a temporary queue.
Jobs in this queue are only enqueued after the request is completed and are
discarded if the request causes an exception (similar to db transactions).

To disable autocommit, put this in settings.py:
RQ = {
    'AUTOCOMMIT': False,
}