From 079cd789679137af4cf60cd3b079c428a9a622ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mathieu?= Date: Fri, 21 Jun 2024 16:44:51 +0200 Subject: [PATCH] fix: backport --- src/main/java/io/kestra/plugin/aws/sqs/Consume.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/kestra/plugin/aws/sqs/Consume.java b/src/main/java/io/kestra/plugin/aws/sqs/Consume.java index a96a5f6..8fb2f15 100644 --- a/src/main/java/io/kestra/plugin/aws/sqs/Consume.java +++ b/src/main/java/io/kestra/plugin/aws/sqs/Consume.java @@ -75,7 +75,7 @@ public Output run(RunContext runContext) throws Exception { try (var sqsClient = this.client(runContext)) { var total = new AtomicInteger(); var started = ZonedDateTime.now(); - var tempFile = runContext.workingDir().createTempFile(".ion").toFile(); + var tempFile = runContext.tempFile(".ion").toFile(); try (var outputFile = new BufferedOutputStream(new FileOutputStream(tempFile))) { do {