Worker automatically exit after some time without restarting #6580
Labels
difficulty: easy
estimate: 1h
Estimated time: 1 hour
merge-level: patch
plugin: docker-options
status: has plan
type: bug
Description of problem
I have an application that uses a worker to process some jobs in the background. The worker works fine after building the app but it exit with exitcode 1 after sometime. After running dokku ps:inspect app_name, I noticed that the restart policy was set as follows
{
MaximumRetryCount:0,
Name:'no'
}
This was fixed by running dokku ps:set app_name restart-policy on-failure:10 and rebuilding the app afterwards.
The expected behavior is for this policy to be set without having to run the above command
Steps to reproduce
Deploy a new app and set dokku ps:scale app_name worker=1
dokku report $APP_NAME
Got the following after running dokku docker-options:report app_name
=====> app_name docker options information
Docker options build:
Docker options deploy:
Docker options run:
Additional information
No response
Output of failing commands after running: dokku trace:off
No response
Output of failing commands after running: dokku trace:on
No response
The text was updated successfully, but these errors were encountered: