-
Notifications
You must be signed in to change notification settings - Fork 235
Kill job reason #1367
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
Kill job reason #1367
Conversation
This feature requires more information from job kill actions requested through the API.
|
|
@roulaoregan-spi has already signed the CLA before, I'm ignoring the EasyCLA |
Signed-off-by: Diego Tavares <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| @Override | ||
| public void killFrames(LayerKillFramesRequest request, StreamObserver<LayerKillFramesResponse> responseObserver) { | ||
| updateLayer(request.getLayer()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here:
It is missing the if (attemptChange(env, property, jobManager, layer, responseObserver)) {
New code:
@Override
public void killFrames(LayerKillFramesRequest request, StreamObserver<LayerKillFramesResponse> responseObserver) {
updateLayer(request.getLayer());
if (attemptChange(env, property, jobManager, layer, responseObserver)) {
manageQueue.execute(new DispatchKillFrames(frameSearch,
new Source(request.toString(), request.getUsername(), request.getPid(),
request.getHostKill(), request.getReason()), jobManagerSupport));
responseObserver.onNext(LayerKillFramesResponse.newBuilder().build());
responseObserver.onCompleted();
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
cuebot/src/main/java/com/imageworks/spcue/servant/ManageJob.java
Outdated
Show resolved
Hide resolved
Return attemptChange calls that got removed by the merge Signed-off-by: Diego Tavares <[email protected]>
|
@ramonfigueiredo thanks for the review. The proposed changes are in. |
|
Thanks @DiegoTavares |
Adding requester information to JobKillRequest
This feature requires more information from job kill
actions requested through the API.
Link the Issue(s) this Pull Request is related to.
This feature is motivated by a situation where a script was misusing the API and calling kill on all the jobs for a show on a regular basis. Without this feature, finding where the requests were coming from was a big endeavor.
Summarize your change.
This change requires that a kill request also provide username, pid, host_kill and reason.