File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
content/shared/influxdb3-cli/test Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -65,15 +65,20 @@ influxdb3 test schedule_plugin \
65
65
66
66
### Test with input arguments and a custom cron schedule
67
67
68
+ 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):
69
+
68
70
<!-- pytest.mark.skip-->
69
71
70
72
``` bash
71
73
influxdb3 test schedule_plugin \
74
+ --host http://localhost:8182 \
72
75
--database DATABASE_NAME \
73
76
--token AUTH_TOKEN \
74
- --input-arguments ' {" threshold": "10", " unit": " seconds"} ' \
75
- --schedule " 0 * * * *" \
77
+ --input-arguments threshold=10, unit= seconds \
78
+ --schedule " 0 0 * * * ? " \
76
79
PLUGIN_DIR/FILENAME.py
77
80
```
81
+ - ` --input-arguments ` accepts comma-separated key=value pairs.
82
+ - ` --schedule ` expects a Quartz cron expression; e.g., "0 0 * * * ?" runs at the top of every hour.
78
83
79
84
{{% /code-placeholders %}}
You can’t perform that action at this time.
0 commit comments