Consolidation Issues - Reserves and Transaction Queues in the Google App Engine Developer Server?

I moved some functionality in a fairly significant App Engine application to the backend and suddenly began to receive a number of errors in the places where I used transactions when working through dev_appserver.py:

ApplicationError: ApplicationError: 10001 Transaction(<handle: 0x1, app: "dev~MYAPPNAME", >) not found 

I realized that the problem only occurs when starting the application through --backends. And I assume that the problem arises because I have a transaction that adds the task to the queue using " transactional=True ", i.e.:

 def txn(): # make model changes taskqueue.add(url='/models/processupdate', params=my_params, transactional=True, queue_name='not_the_default_q') db.run_in_transaction(txn) 

Is this the result of the single-threaded nature of dev_appserver? Is there any work for this?

+4
source share
1 answer

according to google doc here , you cannot name a queue, if your task is transactional, a transactional task can only be added to the default queue

0
source

Source: https://habr.com/ru/post/1391746/


All Articles