oroinc / platform

Main OroPlatform package with core functionality.
Other
628 stars 351 forks source link

Cli Import fails to import several files using same type of Job. #756

Open dimonixx opened 7 years ago

dimonixx commented 7 years ago

Hi

The PreCliImportMessageProcessor creates non unique job names . As result using same job to import several files is impossible.

After running: oro:import:file --jobName=my.import.job --processor=my.import.processor file1.csv oro:import:file --jobName=my.import.job --processor=my.import.processor file2.csv oro:import:file --jobName=my.import.job --processor=my.import.processor file3.csv

Three messages will be create in the queue and only one will be processed. A job instance with name oro_cli:import:my.import.processor:my.import.job:will be created , when processing the first message . Processing the 2nd and 3d messages will fail, because the JobRunner won't be able to runUnique the next job with the same name.

yurio commented 7 years ago

@dimonixx, thanks for the report! Addressed to platform team for fix

INTERNAL ID: BAP-15604