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

Fixes #25282 - Create a task for each target even if missing #371

Merged
merged 5 commits into from
Dec 7, 2018

Conversation

adamruzicka
Copy link
Contributor

We always assumed we will get all targets from the DB. If some of
the targets were missing in the DB, we didn't create the task for
it and it lead to task counters going out of sync.

With this patch we create tasks for missing targets, but pass nil
instead of the target to it.

@adamruzicka
Copy link
Contributor Author

requires Dynflow/dynflow#299 to fix the issue fully

@adamruzicka
Copy link
Contributor Author

[test foreman-tasks]

We always assumed we will get all targets from the DB. If some of
the targets were missing in the DB, we didn't create the task for
it and it lead to task counters going out of sync.

With this patch we create tasks for missing targets, but pass nil
instead of the target to it.
@iNecas
Copy link
Member

iNecas commented Dec 7, 2018

Dynflow 1.1.5, including the dependent change, got released. After bumping the version requirement here, plus fixing the one comment I had, this would be good to go.

@adamruzicka
Copy link
Contributor Author

This PR is 🍏

@iNecas
Copy link
Member

iNecas commented Dec 7, 2018

Thanks @adamruzicka

@iNecas iNecas merged commit 25a555f into theforeman:master Dec 7, 2018
@adamruzicka adamruzicka deleted the fix/25282-missing-batch branch December 7, 2018 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants