Describe the issue
If you use PurgeCurrentExecutionFiles with Task Caching it fails as the file doesn't exist but assumes it will.
Screen.Recording.2026-04-07.at.15.52.50.mov
To reproduce, use this flow:
id : caching
namespace : company.team
tasks :
- id : transactions
type : io.kestra.plugin.core.http.Download
uri : https://huggingface.co/datasets/kestra/datasets/resolve/main/csv/cache_demo/transactions.csv
- id : products
type : io.kestra.plugin.core.http.Download
uri : https://huggingface.co/datasets/kestra/datasets/resolve/main/csv/cache_demo/products.csv
taskCache :
enabled : true
ttl : PT24H
- id : duckdb
type : io.kestra.plugin.jdbc.duckdb.Query
store : true
inputFiles :
products.csv : " {{ outputs.products.uri }}"
transactions.csv : " {{ outputs.transactions.uri }}"
sql : |-
SELECT
t.transaction_id,
t.timestamp,
t.quantity,
t.sale_price,
p.product_name,
p.category,
p.cost_price,
p.supplier_id,
(t.sale_price - p.cost_price) * t.quantity AS profit
FROM
read_csv_auto('transactions.csv') AS t
JOIN
read_csv_auto('products.csv') AS p
USING (product_id);
- id : purge
type : io.kestra.plugin.core.storage.PurgeCurrentExecutionFiles
Environment
Describe the issue
If you use PurgeCurrentExecutionFiles with Task Caching it fails as the file doesn't exist but assumes it will.
Screen.Recording.2026-04-07.at.15.52.50.mov
To reproduce, use this flow:
Environment