echo_activity (temporal_sdk_samples v0.1.12)
View Source"echo" activity used across samples.
Activity can be started with a following input variants:
[Echo]- whereEchois any Erlang term that can be converted with current payload codec.Echovalue is returned as activity result,[Echo, SleepTime]- activity will runtimer:sleep(SleepTime)command pretendig of doing some work,[Echo, SleepTime, FailedAttempts]- activity execution will fail withthrow("Test echo_activity failure")forFailedAttemptscount.
If byte_size(Echo) > 10_000 or length(Echo) > 3_300 activity returns ~"large_payload"
as a result.
Example:
Elixir
start_activity(:echo_activity, ["echo", 10_000, 3])Erlang
start_activity(echo_activity, ["echo", 10_000, 3])