Hi guys,

We have a cronjob that runs just fine for about an year, since yesterday,
we got the following error message:


Failed to run tx_sync_payments() within transaction, error: *cross-group
transaction need to be explicitly specified, see TransactionOptions.Builder.
**withXG*


The code is like this:
===

def tx_sync_payments(self, payment_order_instance, eligible_payment_keys):
...
db.put(...)
...
db.delete(...)
...
===
In other function
===
.
.
.
try:
    db.run_in_transaction(
        self.tx_sync_payments,
        payment_order_instance,
        profile_epayments
    )
except Exception, e:
    return self.error('Failed to run tx_sync_payments() within transaction,
error: %s' % e)

===

please, can some one Help me?

I have tried to put the @db.transactional(xg=True) on the tx_sync_payments
and call it without the db.run_in_transaction, but same error.

Thanks.
-- Catoto

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to