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

Worker automatically exit after some time without restarting #6580

Closed
BoluwajiDavids opened this issue Feb 11, 2024 · 2 comments
Closed

Worker automatically exit after some time without restarting #6580

BoluwajiDavids opened this issue Feb 11, 2024 · 2 comments

Comments

@BoluwajiDavids
Copy link

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

@josegonzalez
Copy link
Member

I think what we should do:

  • In the install trigger, set the property for each app (takes care of existing apps)
  • In the post-create trigger, set the property on the app (takes care of new apps)

@josegonzalez
Copy link
Member

Okay I just tested this, and we already do the above. My guess is that somehow you manually deleted the docker-options file or removed the settings, and thats why we weren't auto-restarting things.

Going to close this for now since I think things are working as intended.

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

2 participants