MCPcopy Create free account
hub / github.com/celery/celery / call_command

Method call_command

celery/bin/multi.py:276–280  ·  view source on GitHub ↗
(self, command, argv)

Source from the content-addressed store, hash-verified

274 return argv and argv[0][0] != '-'
275
276 def call_command(self, command, argv):
277 try:
278 return self.commands[command](*argv) or EX_OK
279 except KeyError:
280 return self.error(f'Invalid command: {command}')
281
282 def _handle_reserved_options(self, argv):
283 argv = list(argv) # don't modify callers argv.

Callers 1

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected