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

Project sync race condition prevents Job Templates from being created #1

Open
AlanCoding opened this issue May 25, 2016 · 0 comments
Open

Comments

@AlanCoding
Copy link
Owner

Sometimes we get errors like this:

POST http://server.com/api/v1/job_templates/
Params: None
Data: {"credential": 3, "name": "Dicki-Weissnat", "description": "Re-engineered 5thgeneration extranet", "job_type": "run", "project": 7, "playbook": "helloworld.yml", "inventory": 2}

Response: {"playbook":["Playbook not found for project."]}

That is caused by the fact that the project does not have any playbooks associated with it, because it has not sufficiently had time to sync. I think the only way around this might be to loop over all of the projects and check that the status shows that they all have updated before moving on to the next item.

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

No branches or pull requests

1 participant