Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 636 Bytes

File metadata and controls

15 lines (9 loc) · 636 Bytes

Custom Converter Sample

This sample shows how to make a custom payload converter for a type not natively supported by Temporal.

To run, first see README.md for prerequisites. Then, run the following from the root directory to start the worker:

uv run custom_converter/worker.py

This will start the worker. Then, in another terminal, run the following to execute the workflow:

uv run custom_converter/starter.py

The workflow should complete with the hello result. If the custom converter was not set for the custom input and output classes, we would get an error on the client side and on the worker side.