fastasyncpg 0.0.7__tar.gz → 0.0.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastasyncpg
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: A simple wrapper for asyncpg
5
5
  Author-email: Jeremy Howard <github@jhoward.fastmail.fm>
6
6
  License: Apache-2.0
@@ -0,0 +1 @@
1
+ __version__ = "0.0.8"
@@ -1,3 +1,5 @@
1
+ """Docs: https://AnswerDotAI.github.io/fastasyncpgcore.html.md"""
2
+
1
3
  # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/00_core.ipynb.
2
4
 
3
5
  # %% auto #0
@@ -713,9 +715,9 @@ async def claim_one(self:Table, status_col='status', pending='pending', complete
713
715
  tbl = txn.t[self.name]
714
716
  p.db = txn
715
717
  p.evt = await tbl.claim(where=f'"{status_col}"=$1', where_args=[pending], order_by=order_by)
718
+ if p.evt is None: return
716
719
  try: yield p
717
720
  except Exception as e: p.failed, p.exc, p.tb = True, e, traceback.format_exc()
718
- if p.evt is None: return
719
721
  pk = self.pks[0]
720
722
  new = failed if p.failed else (None if p.retry else completed)
721
723
  stmt = f'UPDATE {self} SET "{status_col}"=$1 WHERE "{pk}"=$2'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastasyncpg
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: A simple wrapper for asyncpg
5
5
  Author-email: Jeremy Howard <github@jhoward.fastmail.fm>
6
6
  License: Apache-2.0
@@ -1 +0,0 @@
1
- __version__ = "0.0.7"
File without changes
File without changes
File without changes
File without changes
File without changes