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

feat (engine): status on all services, api too #2572

Merged
merged 11 commits into from
Apr 17, 2018
Merged

Conversation

yesnault
Copy link
Member

@yesnault yesnault commented Apr 15, 2018

hatcheries -> services (old heartbeat on hatchery is keep for now)
api -> service too
status is stored in service table

so, cdsctl admin services status [-t]

with type :
-t, --type string Filter service by type: api, hatchery, hook, repository, vcs

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
oldSrv, errOldSrv := repo.FindByName(srv.Name)
if errOldSrv != nil && errOldSrv != sdk.ErrNotFound {
log.Error("serviceAPIHeartbeat:%v", errOldSrv)
continue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing repo.Rollback() ?

@@ -14,8 +14,11 @@ import (

"github.com/facebookgo/httpcontrol"
"github.com/gambol99/go-marathon"
"github.com/gorilla/mux"
"github.com/ovh/cds/sdk/namesgenerator"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this to the good import block

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
Copy link
Member

@fsamin fsamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add integration tests to check:
the status ,
list of started services,
etc.

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
@fsamin fsamin merged commit 94703c2 into master Apr 17, 2018
@fsamin fsamin removed the review label Apr 17, 2018
@yesnault yesnault deleted the ye-status-heartbeat branch May 10, 2018 21:26
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.

4 participants