Cash Costello
Cash Costello
I've been able to reproduce this using Postgres 14.1: turkle/views.py, line 144, in accept_next_task ``` try: with transaction.atomic(): batch = Batch.objects.get(id=batch_id) # Lock access to all Tasks available to current...
Here is the query: ``` SELECT "turkle_task"."id" FROM "turkle_task" LEFT OUTER JOIN "turkle_taskassignment" ON ("turkle_task"."id" = "turkle_taskassignment"."task_id") WHERE ("turkle_task"."batch_id" = 1 AND NOT "turkle_task"."completed" AND "turkle_taskassignment"."id" IS NULL) FOR UPDATE;...
A shorter term solution is to do a check for postgres and skip the transaction/lock if so. There is a small possibility of a race condition that results in 2...
@TomLippincott How about locking all unfinished tasks for a batch? This will lock a few more additional tasks than the current code, but it should be fast lock. This would...
looks like django.db.connection.vendor is the way to go. Django uses it for database specific stuff like this: ``` def process_lhs(self, compiler, connection): lhs, lhs_params = super().process_lhs(compiler, connection) if connection.vendor ==...
Hi @BehroozMansouri. Right now, the skipped task IDs are stored locally in the browser for that user and I believe it deletes the task assignment. When a user skips a...
@ewinslow mentions were never in core. That ticket is referring to the mentions plugin which is still in our Github repos and is being maintained.
I asked a few MacOS users to test installing pytrec_eval. They all cloned the repository, created a virtual environment, and then ran `pip install .`. They all were running OSX...
@demirorenteknoloji Do you plan to make another release to PyPI based on the main branch to support Django 4.0?
The commit in Django 3.2 that broke this package is here: https://github.com/django/django/commit/3071660acfbdf4b5c59457c8e9dc345d5e8894c5 From Django developers' perspective, `AutocompleteJsonView` is private because it is not documented so they can change it without...