Skip to content

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

Open
@dimonixx

Description

@dimonixx

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions