schmittjoh / JMSJobQueueBundle

Run and Schedule Symfony Console Commands as Background Jobs
http://jmsyst.com/bundles/JMSJobQueueBundle
335 stars 254 forks source link

The "--jms-job-id" option does not exist. #172

Closed anboo closed 7 years ago

anboo commented 7 years ago
$mainJob = new Job("app:booker:integration-1c:update", [
'--convertedData' => '{"\u041d\u043e\u043c\u0435\u0440\u0421\u0447\u0435\u0442\u0430":"1234567890123456789012345","Description":"1234567890123456789012345 \u041e\u041e\u041e \"\u041c\u043e\u044f \u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\" 1234567890","bank":{"Code":"1234567890"}}',
'--localId' => '1'
]);

Started Job(id = 17, command = "app:booker:integration-1c:update"). Job 17: The "--jms-job-id" option does not exist. Job 17: Integration consumer throw Symfony\Component\Console\Exception\RuntimeException input: array ( Job 17: 'iteration' => true, Job 17: 'help' => false, Job 17: 'quiet' => false, Job 17: 'verbose' => true, Job 17: 'version' => false, Job 17: 'ansi' => false, Job 17: 'no-ansi' => false, Job 17: 'no-interaction' => false, Job 17: 'env' => 'dev', Job 17: 'no-debug' => false, Job 17: 'command' => 'app:booker:integration-1c:update', Job 17: 'referenceKey' => NULL, Job 17: 'managerId' => NULL, Job 17: 'convertedData' => NULL, Job 17: 'localId' => NULL, Job 17: ) exception message The "--jms-job-id" option does not exist. exception stack trace #0 /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Input/ArgvInput.php(153): Symfony\Component\Console\Input\ArgvInput->addLongOption('jms-job-id', '17') Job 17: #1 /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Input/ArgvInput.php(84): Symfony\Component\Console\Input\ArgvInput->parseLongOption('--jms-job-id=17') Job 17: #2 /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Input/Input.php(63): Symfony\Component\Console\Input\ArgvInput->parse() Job 17: #3 /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php(222): Symfony\Component\Console\Input\Input->bind(Object(Symfony\Component\Console\Input\InputDefinition)) Job 17: #4 /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(853): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) Job 17: #5 /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(200): Symfony\Component\Console\Application->doRunCommand(Object(BookerBundle\Command\CRUD\UpdateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) Job 17: #6 /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(80): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) Job 17: #7 /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(124): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) Job 17: #8 /home/anboo/sites/iseeds/api/bin/console(29): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput)) Job 17: #9 {main} Job 17: Command app:booker:integration-1c:update success Job 17: Job 17: Job 17:
Job 17: [Symfony\Component\Console\Exception\RuntimeException]
Job 17: The "--jms-job-id" option does not exist.
Job 17:
Job 17: Job 17: Exception trace: Job 17: () at /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Input/ArgvInput.php:219 Job 17: Symfony\Component\Console\Input\ArgvInput->addLongOption() at /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Input/ArgvInput.php:153 Job 17: Symfony\Component\Console\Input\ArgvInput->parseLongOption() at /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Input/ArgvInput.php:84 Job 17: Symfony\Component\Console\Input\ArgvInput->parse() at /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Input/Input.php:63 Job 17: Symfony\Component\Console\Input\Input->bind() at /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:222 Job 17: Symfony\Component\Console\Command\Command->run() at /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:853 Job 17: Symfony\Component\Console\Application->doRunCommand() at /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:200 Job 17: Symfony\Component\Console\Application->doRun() at /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:80 Job 17: Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/anboo/sites/iseeds/api/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:124 Job 17: Symfony\Component\Console\Application->run() at /home/anboo/sites/iseeds/api/bin/console:29 Job 17: Job 17: app:booker:integration-1c:update [--iteration [ITERATION]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] Job 17: Job 17: Job(id = 17, command = "app:booker:integration-1c:update") finished with exit code 1.