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

Add option to gracefully catch errors on individual import item requests #10

Closed
nkooman-bzs opened this issue Sep 20, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@nkooman-bzs
Copy link
Contributor

Motivation

When doing larger migrations sometimes it would be more ideal to let the import continue rather than fail entirely and report afterward that there are items that failed.
For example, I do not want the entire process to fail when an item is not able to be published due to missing elements. I would rather see the publish fail and for the process to continue.

Proposed solution

Add an option to continue on failure, adding a catch statement in processing-utils.ts. Here we could check for a flag to determine whether we re-throw the error.
Potentially offer the ability to set a function that will run when an item fails. That way a user can easily inject external logic or logging when a failure happens.

Additional context

N/A

@Enngage Enngage self-assigned this Oct 3, 2024
@Enngage Enngage added the enhancement New feature or request label Dec 11, 2024
@Enngage
Copy link
Member

Enngage commented Dec 11, 2024

Will be implemented as a part of - #21

@Enngage Enngage closed this as completed Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants