pypi huey 3.3.0

one day ago
  • Add retry_backoff parameter to task() and periodic_task(). The first retry waits retry_delay seconds and each subsequent delay is multiplied by retry_backoff, giving exponentially-growing waits between retries.
  • Fix create_tables=False, which crashed SqliteHuey at connect and was silently ignored by the peewee SqlHuey. SqlStorage also gains initialize_schema() so the create_huey_tables command supports it.
  • Accept float priorities in FileStorage by truncating to int. Previously they raised a TypeError.
  • Raise ResultTimeout from blocking Result.get() when the wait ends w/o an obtainable result, e.g. a dropped connection. Previously the internal EmptyData sentinel could be returned.
  • Preserve per-call retry_backoff when a task is rescheduled via Result.reschedule().
  • Clear revocations that arrive mid-execution w/ a delete, so the clear also works on RedisExpireHuey where destructive reads do not remove data.
  • Fix an off-by-one in the redis scheduled_items() that returned limit+1 items.
  • Reconnect stale connections in the SqlHuey counter methods, which run in the consumer via chords and rate limits.
  • Return the lock from TaskLock.__enter__(), so with huey.lock_task('x') as lock: binds the lock instead of None.
  • Defer the redis server version check to first use. Previously every storage init issued an INFO round-trip.
  • Remove the undocumented Kyoto Tycoon storage backend, its tests, and the ukt CI dependency.
  • Remove the djhuey backend_class alias for huey_class (deprecated since 2.0) and the Django <1.2 settings.DATABASE_NAME queue-name fallback.
  • Fire the chord callback when a pipelined member dies before its tail. A failed, revoked, or expired stage now contributes for the member, where previously the chord counter stayed short and the callback never ran.
  • Add CySqliteHuey, which drives the sqlite storage w/ cysqlite instead of the stdlib sqlite3 module and takes an open-ended pragmas dict in place of a fixed set of tuning parameters.

View commits

im-d027a54447

Don't miss a new huey release

NewReleases is sending notifications on new releases.