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

support for depends_on #41

Open
KunalSin9h opened this issue Dec 15, 2023 · 0 comments
Open

support for depends_on #41

KunalSin9h opened this issue Dec 15, 2023 · 0 comments
Labels
enhancement New feature or request high-priority
Milestone

Comments

@KunalSin9h
Copy link
Owner

May be we can spawn different services in separate go-routine and wait for desired dependencies to exists

for _, service := range services {
    go applyService(service)
} 

func applyService(service) {
    for !dependenciesRunning(services.depends_on) {
       time.Sleep(1 * time.Seonds)
    }

    // run current service
}
@KunalSin9h KunalSin9h added the enhancement New feature or request label Dec 15, 2023
@KunalSin9h KunalSin9h added this to the 1.0.0 milestone Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high-priority
Projects
None yet
Development

No branches or pull requests

1 participant