From 2d380eabf9fa22c0baed43bff8f6b25cf07136cd Mon Sep 17 00:00:00 2001 From: meelahme Date: Mon, 9 Jun 2025 12:00:23 -0700 Subject: [PATCH] docs: schedule_plugin test command docs with input args, cron syntax, and troubleshooting --- content/shared/influxdb3-cli/test/schedule_plugin.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/content/shared/influxdb3-cli/test/schedule_plugin.md b/content/shared/influxdb3-cli/test/schedule_plugin.md index 716816dea..0266aa9c4 100644 --- a/content/shared/influxdb3-cli/test/schedule_plugin.md +++ b/content/shared/influxdb3-cli/test/schedule_plugin.md @@ -65,15 +65,20 @@ influxdb3 test schedule_plugin \ ### Test with input arguments and a custom cron schedule +You can pass input arguments to your plugin as key-value pairs and specify a custom cron schedule (using Quartz cron syntax with six fields): + ```bash influxdb3 test schedule_plugin \ + --host http://localhost:8182 \ --database DATABASE_NAME \ --token AUTH_TOKEN \ - --input-arguments '{"threshold": "10", "unit": "seconds"}' \ - --schedule "0 * * * *" \ + --input-arguments threshold=10,unit=seconds \ + --schedule "0 0 * * * ?" \ PLUGIN_DIR/FILENAME.py ``` +- `--input-arguments` accepts comma-separated key=value pairs. +- `--schedule` expects a Quartz cron expression; e.g., "0 0 * * * ?" runs at the top of every hour. {{% /code-placeholders %}}