Skip to content

Commit

Permalink
stop execution service user (logicalclocks#1092)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErmiasG committed Sep 27, 2022
1 parent 73e6b17 commit abc4c00
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ public Response getExecution(@ApiParam(value = "execution id", required = true)
@Path("{id}/status")
@Produces(MediaType.APPLICATION_JSON)
@AllowedProjectRoles({AllowedProjectRoles.DATA_SCIENTIST, AllowedProjectRoles.DATA_OWNER})
@JWTRequired(acceptedTokens={Audience.API, Audience.JOB}, allowedUserRoles={"HOPS_ADMIN", "HOPS_USER"})
@ApiKeyRequired( acceptedScopes = {ApiScope.JOB}, allowedUserRoles = {"HOPS_ADMIN", "HOPS_USER"})
@JWTRequired(acceptedTokens = {Audience.API, Audience.JOB},
allowedUserRoles = {"HOPS_ADMIN", "HOPS_USER", "HOPS_SERVICE_USER"})
@ApiKeyRequired(acceptedScopes = {ApiScope.JOB}, allowedUserRoles = {"HOPS_ADMIN", "HOPS_USER", "HOPS_SERVICE_USER"})
public Response stopExecution(
@ApiParam(value = "Id of execution.", required = true) @PathParam("id") Integer id,
@ApiParam(value = "status to set.", required = true) Status status,
Expand Down

0 comments on commit abc4c00

Please sign in to comment.