Add the delay_to_eta function

This commit is contained in:
tcely 2025-06-14 12:03:55 -04:00 committed by GitHub
parent 2378ee8649
commit 19983f06cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,10 @@
def delay_to_eta(delay, /):
from huey.utils import normalize_time
return normalize_time(delay=delay)
def h_q_dict(q, /):
return dict(
scheduled=(q.scheduled_count(), q.scheduled(),),