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

ISPN-14488 REST Task execution with cache #10609

Merged

Conversation

tristantarrant
Copy link
Member

@tristantarrant tristantarrant commented Jan 26, 2023

@tristantarrant tristantarrant changed the title ISPN-14487 REST Task execution with cache ISPN-14488 REST Task execution with cache Jan 26, 2023
Copy link
Member

@jabolina jabolina left a comment

Choose a reason for hiding this comment

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

LGTM


return CompletableFuture.supplyAsync(() -> {
String script = Subject.doAs(request.getSubject(), (PrivilegedAction<String>) () -> scriptingManager.getScript(taskName));
return builder.entity(script).build();
Copy link
Member

Choose a reason for hiding this comment

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

should we add a content-type here or unnecessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

probably I should set it to text/plain. In theory we could determine it from the script metadata (which is not exposed by the ScriptingManager API).

@tristantarrant tristantarrant force-pushed the ISPN-14487/rest_task_exec_cache branch 2 times, most recently from 5fa3120 to 90b00a3 Compare January 27, 2023 12:47
@jabolina
Copy link
Member

@tristantarrant CI reported failures in TasksResourceTest.

@jabolina jabolina merged commit 13fe924 into infinispan:main Jan 30, 2023
@jabolina
Copy link
Member

Merged, thanks @tristantarrant!

@tristantarrant tristantarrant deleted the ISPN-14487/rest_task_exec_cache branch April 12, 2023 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants