Skip to content

Commit 3c38b2c

Browse files
authored
Docs (#2056)
* Correct duplicate word. * Correct indefinite article.
1 parent b1f0d03 commit 3c38b2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/modules/java/pages/timers.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ include::example$java-spring-reliable-timers/src/main/java/com/example/actions/O
6363
<2> If the `CompletionStage` completes successfully, it's all good and can simply return `Ok`. Since this method is returning normally, the timer will be considered as executed and will be removed from Kalix.
6464
<3> On the other hand, if the `CompletionStage` completes with a failure, you must decide if you will recover the call or not. If you recover it, the timer will be considered as completed. If you let the call fail, the timer will be re-scheduled.
6565

66-
You have seen the `OrderEntity.cancel` implementation, so you know that if you get a `NOT_FOUND`, it means that either the Order never existed or it was already cancelled (deleted). Or, you may get an `BAD_REQUEST` error, meaning that the order has been confirmed in the meantime. In both cases, you can consider that the timer has become obsolete and don't need to be rescheduled, therefore we recover the call.
66+
You have seen the `OrderEntity.cancel` implementation, so you know that if you get a `NOT_FOUND`, it means that either the Order never existed or it was already cancelled (deleted). Or, you may get a `BAD_REQUEST` error, meaning that the order has been confirmed in the meantime. In both cases, you can consider that the timer has become obsolete and don't need to be rescheduled, therefore we recover the call.
6767

6868
For all other possible errors, the call to `OrderAction.expire` will fail and the timer will be re-scheduled.
6969

docs/src/modules/java/pages/workflows.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Design for failure is one of the key attributes of all Kalix components. Workflo
170170

171171
=== Timeouts
172172

173-
By default, a workflow run has no time limit. It can run forever, which in most cases is not desirable behavior. A workflow step, on the other hand, has a default timeout of 5 seconds timeout. Both settings can be overridden at the workflow definition level or for a specific step configuration.
173+
By default, a workflow run has no time limit. It can run forever, which in most cases is not desirable behavior. A workflow step, on the other hand, has a default timeout of 5 seconds. Both settings can be overridden at the workflow definition level or for a specific step configuration.
174174

175175
[source,java,indent=0]
176176
.src/main/java/com/example/transfer/TransferWorkflow.java

0 commit comments

Comments
 (0)