Add the delay_to_eta function
This commit is contained in:
1 parent
2378ee8649
commit
19983f06cb
1 file changed
+5
@@ -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(),),
|
||||
|
||||
Reference in new issue
Block a user