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

Retry a failed job will lose related entities #189

Open
bschultz opened this issue Oct 11, 2017 · 1 comment
Open

Retry a failed job will lose related entities #189

bschultz opened this issue Oct 11, 2017 · 1 comment

Comments

@bschultz
Copy link

We are using this bundle in our project with related entities.
We have some failed jobs and wanted to retry them but unfortunately when using the retry button in the web interface the related entites will not be set for the new retry job.

After checking the code I saw that in the JobController the original job is just cloned and inside the __clone function of the Job entity the related entities are resetted: $this->relatedEntities = new ArrayCollection();

In my opinion this is an issue because when you rely on those entities you can't retry the failed jobs because important information are lost.

@mcorteel
Copy link

Job::getRelatedEntities could be modified to fetch related entities on the originalJob if any.

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

2 participants