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

Use the Async Partner API to provision changes #3

Open
jasonwalsh opened this issue Jun 8, 2018 · 0 comments
Open

Use the Async Partner API to provision changes #3

jasonwalsh opened this issue Jun 8, 2018 · 0 comments
Assignees

Comments

@jasonwalsh
Copy link
Contributor

The add-on receives HTTP requests and invokes an Ansible Playbook with the data from the request. This type of request is costly and must be executed asynchronously.

After receiving a request, immediately respond with 202 Accepted as the Playbook executes as a separate process. After the Playbook finishes executing, issue a request to the Heroku callback API to configure environment variables for the application.

Refer to https://devcenter.heroku.com/articles/add-on-partner-technical-best-practices#don-t-perform-expensive-provisions-or-plan-changes-in-real-time for additional information.

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