Heroku: why perform maintenance operations
This application is designed to be highly resilient and does not require many maintenance operations. However, in some situations, you may need to restart the Heroku app to update your application version and benefit from the latest patch releases.
In some cases, for example if an error occurs during data processing, some files created for the operation may not be deleted. They can accumulate and fill up the allocated volume. This issue can usually be fixed by stopping and restarting the app.
When to operate
Data processes failed
The first signal that your application may need maintenance is when some data processes launched from Salesforce end with a Failed status. Before checking your Heroku platform, make sure the error description does not indicate an issue elsewhere. For example, if you built your own deduplication rules, some errors may occur and stop the process.
For example, if you check your Salesforce Lightning application DQE One, open the Runs tab, and find a failed run as shown below, you may need to restart your Heroku app.
Data processes pending
Sometimes, the job queue can get stuck on the same message and block data processing. In this situation, clear the queue messages in CloudAMQP and reload the application. This should fix the issue in most cases.
- Go to the Heroku platform and select your application.
- Go to the Installed Add-ons section and select CloudAMQP.
- A new tab opens. Click RabbitMQ Manager.
- Go to Queues and Streams.
- Choose the queues with Ready messages, scroll down, and click Purge all messages.
Package update
Follow the steps below to update the package.
- After the first installation, a folder is created on your computer.
- Open this folder.
- Open a command prompt window.
- Run the following command:
git pull
- Run the following command:
git commit --allow-empty -m "update"
- Run the following command:
git commit --allow-empty -m "update"
If this does not work, delete the add-on in the Heroku interface and install it again as a new add-on:
- Go to the Heroku variables.
- Add your API key in the DQE_ONE_SERVEUR_LICENCE variable.
- Update the version to your version.
- After the first installation, a folder is created on your computer.
- Open this folder.
- Open a command prompt window.
- Run the following command:
git add .
- Run the following command:
git commit -am "first deploy"
- Run the following command:
git push heroku master
Related to