This example contains a simple workflow definition that executes a python standard function library
You will need:
When using native image compilation, you will also need:
mvn clean package quarkus:dev
mvn clean package java -jar target/quarkus-app/quarkus-run.jar
or on windows
mvn clean package java -jar target\quarkus-app\quarkus-run.jar
Note that this requires GRAALVM_HOME to point to a valid GraalVM installation Also LD_LIBRARY_PATH should include GRAALVM_HOME/lib/server
mvn clean package -Pnative
To run the generated native executable, generated in target/
, execute
./target/serverless-workflow-python-quarkus-{version}-runner
The service based on the JSON workflow definition can be access by sending an empty request to http://localhost:8080/python_helloworld
curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' -d '{}' http://localhost:8080/python_helloworld
It will return as result the current year