MCPcopy
hub / github.com/celery/celery / include_if

Method include_if

celery/bootsteps.py:322–328  ·  view source on GitHub ↗

Return true if bootstep should be included. You can define this as an optional predicate that decides whether this step should be created.

(self, parent)

Source from the content-addressed store, hash-verified

320 pass
321
322 def include_if(self, parent):
323 """Return true if bootstep should be included.
324
325 You can define this as an optional predicate that decides whether
326 this step should be created.
327 """
328 return self.enabled
329
330 def instantiate(self, name, *args, **kwargs):
331 return instantiate(name, *args, **kwargs)

Callers 2

_should_includeMethod · 0.95
test_include_ifMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_include_ifMethod · 0.36