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(core): rename PurgeInternalStorage to PurgeCurrentExecutionFiles #4304

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
},
aliases = {"io.kestra.core.tasks.storages.PurgeExecution", "io.kestra.plugin.core.storage.PurgeExecution"}
)
public class PurgeInternalStorage extends Task implements RunnableTask<PurgeInternalStorage.Output> {
public class PurgeCurrentExecutionFiles extends Task implements RunnableTask<PurgeCurrentExecutionFiles.Output> {
@Override
public PurgeInternalStorage.Output run(RunContext runContext) throws Exception {
public PurgeCurrentExecutionFiles.Output run(RunContext runContext) throws Exception {
return Output.builder()
.uris(runContext.storage().deleteExecutionFiles())
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import static org.hamcrest.Matchers.is;

@KestraTest
class PurgeInternalStorageTest {
class PurgeCurrentExecutionFilesTest {
@Inject
private RunContextFactory runContextFactory;

Expand All @@ -31,7 +31,7 @@ void run() throws Exception {
var file = runContext.workingDir().createFile("test.txt", "Hello World".getBytes());
runContext.storage().putFile(file.toFile());

var purge = PurgeInternalStorage.builder()
var purge = PurgeCurrentExecutionFiles.builder()
.build();
var output = purge.run(runContext);

Expand Down