Skip to content

Commit 5d97e83

Browse files
authored
Merge branch 'main' into rails-readme-updates
2 parents 36668cb + f2e5c17 commit 5d97e83

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1686
-331
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ temporalio/.yardoc
88
temporalio/doc
99
temporalio/pkg
1010
temporalio/lib/temporalio/internal/bridge/temporalio_bridge.bundle
11+
temporalio/.bundle
12+
.idea/

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ class GreetingWorkflow < Temporalio::Workflow::Definition
407407
# on wait_condition calls, so Cancellation object doesn't need to be passed
408408
# explicitly.
409409
Temporalio::Workflow.wait_condition { @greeting_params_update || @complete }
410-
410+
411411
# If there was an update, exchange and rerun. If it's _only_ a complete, finish
412412
# workflow with the greeting.
413413
if @greeting_params_update
@@ -479,7 +479,8 @@ definition/behavior of the method:
479479
side effects, meaning they should never mutate state or try to wait on anything.
480480

481481
Workflows can be inherited, but subclass workflow-level decorators override superclass ones, and the same method can't
482-
be decorated with different handler types/names in the hierarchy.
482+
be decorated with different handler types/names in the hierarchy. Workflow handlers (execute or any marked method)
483+
cannot accept keyword arguments.
483484

484485
#### Running Workflows
485486

@@ -944,6 +945,7 @@ Some notes about activity definition:
944945
* `workflow_raw_args` can be used to have activity arguments delivered to `execute` as
945946
`Temporalio::Converters::RawValue`s. These are wrappers for the raw payloads that have not been converted to types
946947
(but they have been decoded by the codec if present). They can be converted with `payload_converter` on the context.
948+
* Activities cannot accept keyword arguments.
947949

948950
#### Activity Context
949951

@@ -1229,9 +1231,11 @@ Prerequisites:
12291231

12301232
First, install dependencies:
12311233

1232-
bundle install
1234+
# Optional: Change bundler install path to be local
1235+
bundle config --local path $(pwd)/.bundle
1236+
bundle instal
12331237

1234-
To build shared library for development use:
1238+
To build shared library for development use (ensure you have cloned submodules :
12351239

12361240
bundle exec rake compile
12371241

@@ -1263,6 +1267,9 @@ the gem at `lib/temporalio/internal/bridge/3.2/temporalio_bridge.so` and
12631267

12641268
### Testing
12651269

1270+
Note you can set `TEMPORAL_TEST_CLIENT_TARGET_HOST` and `TEMPORAL_TEST_CLIENT_TARGET_NAMESPACE`
1271+
(optional, defaults to 'default') environment variables to use an existing server.
1272+
12661273
This project uses `minitest`. To test:
12671274

12681275
bundle exec rake test

temporalio/.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Metrics/ModuleLength:
6767

6868
# The default is too small
6969
Metrics/PerceivedComplexity:
70-
Max: 40
70+
Max: 60
7171

7272
# We want the `*args` syntax instead of `*` so we can document clearly in YARD
7373
Style/ArgumentsForwarding:

temporalio/.yardopts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
--readme README.md
2-
--protected
2+
--protected

0 commit comments

Comments
 (0)