Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

round 2 of changes - just 5 small edits #14

Merged
merged 1 commit into from
Jan 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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