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

Mark cert expired tasks as killed instead of failed #53

Merged
merged 1 commit into from
Jan 5, 2018

Conversation

deejay1
Copy link
Contributor

@deejay1 deejay1 commented Jan 5, 2018

We shouldn't mark task where the certificate expires as
a failed task, because it was explicitly killed by the executor
and it wasn't the tasks fault that it had to die.

We shouldn't mark task where the certificate expires as
a failed task, because it was explicitly killed by the executor
and it wasn't the tasks fault that it had to die.
unhealthy := false
info := state.OptionalInfo{Healthy: &unhealthy, Message: &event.Message}
e.stateUpdater.UpdateWithOptions(taskInfo.GetTaskID(), mesos.TASK_RUNNING, info)
log.WithFields(log.Fields{"TaskID": taskInfo.GetTaskID(), "Reason": event.Message}).Info("Killing task")
Copy link
Member

Choose a reason for hiding this comment

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

maybe add reason why task is killed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There already i in the Reason field, because of

e.events <- Event{Type: FailedDueToExpiredCertificate, Message: "Certificate expired"}

Copy link
Member

Choose a reason for hiding this comment

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

yeah but the one you pointed is sent to Marathon and the one I pointed is a local executor log

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 73.768% when pulling 586ebee on deejay1:cert_expire into 58ae915 on allegro:master.

@medzin medzin self-requested a review January 5, 2018 12:17
Copy link
Contributor

@medzin medzin left a comment

Choose a reason for hiding this comment

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

LGTM

@janisz janisz merged commit 313e0fc into allegro:master Jan 5, 2018
@deejay1 deejay1 deleted the cert_expire branch January 7, 2018 12:10
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.

5 participants