Skip to content

Instantly share code, notes, and snippets.

@gforcada
Created January 18, 2016 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gforcada/0fd8c176559ae8773d09 to your computer and use it in GitHub Desktop.
Save gforcada/0fd8c176559ae8773d09 to your computer and use it in GitHub Desktop.
Remove zc.async queue
from App.config import getConfiguration
import transaction
configuration = getConfiguration()
db = configuration.dbtab.getDatabase(name='main')
tm = transaction.TransactionManager()
conn = db.open(transaction_manager=tm)
tm.begin()
try:
root = conn.root()
del root['zc.async']
tm.commit()
except Exception:
tm.abort()
raise
finally:
conn.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment