MCPcopy Index your code
hub / github.com/coleifer/huey / s

Method s

huey/api.py:1039–1053  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1037 return self.func(*args, **kwargs)
1038
1039 def s(self, *args, **kwargs):
1040 eta = kwargs.pop('eta', None)
1041 delay = kwargs.pop('delay', None)
1042 if delay is not None and isinstance(delay, datetime.timedelta):
1043 delay = delay.total_seconds()
1044 if eta is not None or delay is not None:
1045 eta = normalize_time(eta, delay, self.huey.utc)
1046
1047 return self.task_class(args, kwargs,
1048 eta=eta,
1049 retries=kwargs.pop('retries', None),
1050 retry_delay=kwargs.pop('retry_delay', None),
1051 priority=kwargs.pop('priority', None),
1052 expires=kwargs.pop('expires', None),
1053 timeout=kwargs.pop('timeout', None))
1054
1055
1056class TaskLock(object):

Callers 15

_applyMethod · 0.95
__call__Method · 0.95
thenMethod · 0.80
errorMethod · 0.80
thenMethod · 0.80
__init__Method · 0.80
innerFunction · 0.80
enqueueMethod · 0.80
test_groupMethod · 0.80
test_chordMethod · 0.80
test_chord_nestedMethod · 0.80

Calls 1

normalize_timeFunction · 0.90

Tested by 15

test_groupMethod · 0.64
test_chordMethod · 0.64
test_chord_nestedMethod · 0.64
test_chord_pipelineMethod · 0.64
test_signals_chordMethod · 0.64
test_register_uniqueMethod · 0.64
test_message_wrappingMethod · 0.64