Skip to content

Commit

Permalink
Merge pull request #14 from dougsillars/main
Browse files Browse the repository at this point in the history
round 2 of changes - just 5 small edits
  • Loading branch information
dougsillars authored Jan 13, 2022
2 parents ebbf781 + 271f158 commit bc9101a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
16 changes: 13 additions & 3 deletions docs/getting-started/run/running-first-worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,14 @@ curl 'http://localhost:8080/api/workflow/first_sample_workflow_with_worker' \
The API path contains the workflow name `first_sample_workflow_with_worker` and in our workflow since we don't need any
inputs we will specify `{}`

Successful POST request should return a workflow id, which you can use to find the execution in the UI.
Successful POST request should return a workflow id, which you can use to find the execution in the UI by navigating to `http://localhost:5000/execution/<workflowId>`.

*Note: You can also run this using the Swagger UI instead of curl.*

### Step 4 - Poll for Worker Task

To get your Worker taskId, you first naviaget to `http://localhost:5000/execution/<workflowId>`. Next, click on the `simple_worker_ref_1` in the UI. This will open a summary pane with the `Task Execution ID`

If you look up the worker using the following URL `http://localhost:8080/api/tasks/{taskId}`, you will notice that the worker is in `SCHEDULED` state. This is
because we haven't implemented the worker yet. Let's walk through the steps to implement the worker.

Expand All @@ -156,10 +158,18 @@ because we haven't implemented the worker yet. Let's walk through the steps to i

In your project, add the following dependencies. We are showing here how you will do this in gradle:

```javascript reference
https://github.com/orkes-io/orkesworkers/blob/main/build.gradle#L14-L20
```javascript
implementation("com.netflix.conductor:conductor-client:${versions.conductor}") {
exclude group: 'com.github.vmg.protogen', module: 'protogen-annotations'
}

implementation("com.netflix.conductor:conductor-common:${versions.conductor}") {
exclude group: 'com.github.vmg.protogen', module: 'protogen-annotations'
}
```

[See full example on GitHub](https://github.com/orkes-io/orkesworkers/blob/main/build.gradle)

You can do this for Maven as well, just need to use the appropriate syntax. We will need the following two libraries
available in maven repo and you can use the latest version if required.

Expand Down
4 changes: 2 additions & 2 deletions docs/running-workflows/pause-resume-workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ sidebar_position: 1

# Pause / Resume Workflows

TODO


## Summary

TODO

1 change: 1 addition & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const config = {
path: './blog',
showReadingTime: true,
editUrl: 'https://github.com/orkes-io/docs/edit/main/',

},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand Down

0 comments on commit bc9101a

Please sign in to comment.