Skip to content

Commit

Permalink
Add Java data upload logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gvdongen committed Dec 18, 2024
1 parent 6246783 commit c6c6f09
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions java/patterns-use-cases/async-task-data-upload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,30 @@ The workflow will run only once per ID, so you need to provide a new ID for each

5. Have a look at the logs to see how the execution switches from synchronously waiting to the response to requesting an email:

Fast upload:
**Fast upload:**

Client logs:
```
2024-12-18 15:02:34 INFO my.example.UploadClient - Uploading data for user someone212
2024-12-18 15:02:36 INFO my.example.UploadClient - Fast upload... URL was https://s3-eu-central-1.amazonaws.com/257587941/
```
Workflow logs:
```
2024-12-18 15:02:34 INFO [DataUploadService/run][inv_17cZwACLnO7f5m1BjN7SKoQpuyycCmWwnv] dev.restate.sdk.core.InvocationStateMachine - Start invocation
2024-12-18 15:02:34 INFO [DataUploadService/run][inv_17cZwACLnO7f5m1BjN7SKoQpuyycCmWwnv] my.example.utils.DataOperations - Creating bucket with URL https://s3-eu-central-1.amazonaws.com/257587941/
2024-12-18 15:02:34 INFO [DataUploadService/run][inv_17cZwACLnO7f5m1BjN7SKoQpuyycCmWwnv] my.example.utils.DataOperations - Uploading data to target https://s3-eu-central-1.amazonaws.com/257587941/. ETA: 1500 ms
2024-12-18 15:02:36 INFO [DataUploadService/run][inv_17cZwACLnO7f5m1BjN7SKoQpuyycCmWwnv] dev.restate.sdk.core.InvocationStateMachine - End invocation
```

Slow upload:
**Slow upload**:

Client logs:
```
2024-12-18 15:02:41 INFO my.example.UploadClient - Uploading data for user someone2122
2024-12-18 15:02:46 INFO my.example.UploadClient - Slow upload... Mail the link later
```

Workflow logs:
```
2024-12-18 15:02:41 INFO [DataUploadService/run][inv_1koakM2GXxcN2Co3aM3pSrQJokiqnyR7MJ] dev.restate.sdk.core.InvocationStateMachine - Start invocation
2024-12-18 15:02:41 INFO [DataUploadService/run][inv_1koakM2GXxcN2Co3aM3pSrQJokiqnyR7MJ] my.example.utils.DataOperations - Creating bucket with URL https://s3-eu-central-1.amazonaws.com/493004051/
Expand Down

0 comments on commit c6c6f09

Please sign in to comment.