From 0f9baf62a198825439373dcabaf7a117b404aa1a Mon Sep 17 00:00:00 2001 From: merusso Date: Tue, 23 Sep 2025 07:10:20 -0500 Subject: [PATCH] docs: Update Remote Taskfiles default values (#2430) * docs: Update Remote Taskfiles default values This change updates the documentation for [Remote Taskfiles > Configuration](https://taskfile.dev/docs/experiments/remote-taskfiles#configuration) for `timeout` and `cache-expiry` to match the defaults in code. * docs: Update `cache-expiry` default to 0s * docs: Update executor.go comment Fix doc comment to indicate that cache expiry default duration is 0. --- executor.go | 2 +- website/src/docs/experiments/remote-taskfiles.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/executor.go b/executor.go index 8f9233ef..6ecf910a 100644 --- a/executor.go +++ b/executor.go @@ -240,7 +240,7 @@ func (o *timeoutOption) ApplyToExecutor(e *Executor) { } // WithCacheExpiryDuration sets the duration after which the cache is considered -// expired. By default, the cache is considered expired after 24 hours. +// expired. By default, the cache is 0 (disabled). func WithCacheExpiryDuration(duration time.Duration) ExecutorOption { return &cacheExpiryDurationOption{duration: duration} } diff --git a/website/src/docs/experiments/remote-taskfiles.md b/website/src/docs/experiments/remote-taskfiles.md index 11e62f96..4171ec49 100644 --- a/website/src/docs/experiments/remote-taskfiles.md +++ b/website/src/docs/experiments/remote-taskfiles.md @@ -330,7 +330,7 @@ remote: #### `timeout` - **Type**: `string` -- **Default**: Not specified +- **Default**: 10s - **Pattern**: `^[0-9]+(ns|us|µs|ms|s|m|h)$` - **Description**: Timeout duration for remote operations (e.g., '30s', '5m') @@ -342,7 +342,7 @@ remote: #### `cache-expiry` - **Type**: `string` -- **Default**: Not specified +- **Default**: 0s (no cache) - **Pattern**: `^[0-9]+(ns|us|µs|ms|s|m|h)$` - **Description**: Cache expiry duration for remote Taskfiles (e.g., '1h', '24h')