You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "momo-jun (via GitHub)" <gi...@apache.org> on 2023/04/28 09:31:47 UTC

[GitHub] [pulsar-site] momo-jun commented on a diff in pull request #544: [improve][fn] add docs for supporting reading config options from files in Python runner

momo-jun commented on code in PR #544:
URL: https://github.com/apache/pulsar-site/pull/544#discussion_r1180172246


##########
docs/functions-runtime-process.md:
##########
@@ -22,3 +22,37 @@ functionRuntimeFactoryConfigs:
 ```
 
 For more details, see [code](https://github.com/apache/pulsar/blob/master/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/process/ProcessRuntimeFactoryConfig.java).
+
+### Set runtime parameter with configuration file
+
+Pulsar Functions now supports setting runtime parameters using a configuration file **in Python**. 
+
+**Example**
+
+You can start a Python runtime using the configuration file `config.ini` with the following command.
+
+```shell
+pulsar-admin functions localrun \
+  --py /path/to/python_instance.py \
+  --config-file /path/to/config.ini \
+  --classname MyFunction \
+  --logging_leve debug \

Review Comment:
   ```suggestion
     --logging_level debug \
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org