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

ApplicationSpec.StartType does not take effect after configuration. #130

Closed

Conversation

leonlee2013
Copy link

@leonlee2013 leonlee2013 commented Dec 8, 2022

Configure StartType to ApplicationStartTemporary
but the end result is ApplicationStartTemporary

func (da *demoApp) Load(args ...etf.Term) (gen.ApplicationSpec, error) {
    return gen.ApplicationSpec{
      Name:        "demoApp",
      Description: "Demo Applicatoin",
      Version:     "v.1.0",
      Children: []gen.ApplicationChildSpec{
      gen.ApplicationChildSpec{
          Child: createDemoSup(),
          Name:  "demoSup",
        },  
      gen.ApplicationChildSpec{
          Child: createDemoServer(),
          Name:  "demoServer",
        },  
      },  
      StartType: gen.ApplicationStartPermanent,
    }, nil 
  }

@leonlee2013
Copy link
Author

I test is good. Very strange, did not understand where the test did not pass.
How to launch another test?

@halturin
Copy link
Collaborator

Confirm that. This is a bug. "StartType" option is ignored for the autostarting applications. But the solution you provided is incorrect. I'll fix it.

halturin added a commit that referenced this pull request Feb 24, 2023
@halturin
Copy link
Collaborator

fixed in the v222 branch

@halturin halturin closed this Feb 24, 2023
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

Successfully merging this pull request may close these issues.

2 participants