Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML map file name is constant #1

Open
alespouzar opened this issue Jan 11, 2018 · 0 comments
Open

XML map file name is constant #1

alespouzar opened this issue Jan 11, 2018 · 0 comments

Comments

@alespouzar
Copy link

It's not save to run more than one Writer job at the same time as XML mapping file name is constant (map_file.xml). So one job can rewrite mapping file of another running job (files are uploaded to the same directory "uploads"). Mapping file should have unique name (e.g. using random string or at least database/list id).

Example:
Job 1: (CZ contacts):
Source file: contacts.csv (filter on column COUNTRY = CZ)
Target: CZ database (id 1234)

Job 2 (SK contacts):
Source file: contacts.csv (filter on column COUNTRY = SK)
Target: SK database (id 5678)

Both files can be uploaded nearly at the same time so API job for CZ can read mapping file for SK (i.e. SK contacts would be imported to CZ database) or vice versa.

Could you please fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant