MCPcopy
hub / github.com/celery/celery / _args

Method _args

t/unit/apps/test_multi.py:114–120  ·  view source on GitHub ↗
(name, *args)

Source from the content-addressed store, hash-verified

112 nodes3 = list(multi_args(p2, cmd='celery multi'))
113
114 def _args(name, *args):
115 return args + (
116 '--pidfile={}.pid'.format(os.path.join(os.path.normpath('/var/run/celery/'), name)),
117 '--logfile={}%I.log'.format(os.path.join(os.path.normpath('/var/log/celery/'), name)),
118 f'--executable={sys.executable}',
119 '',
120 )
121
122 assert len(nodes3) == 10
123 assert nodes3[0].name == 'celery1@example.com'

Callers

nothing calls this directly

Calls 2

formatMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected