Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Add Go Client (Worker) Implementation#133

Merged
v1r3n merged 10 commits intoNetflix:devfrom
cquon:dev
Mar 23, 2017
Merged

Add Go Client (Worker) Implementation#133
v1r3n merged 10 commits intoNetflix:devfrom
cquon:dev

Conversation

@cquon
Copy link
Contributor

@cquon cquon commented Mar 22, 2017

No description provided.


// wait infinitely while the go routines are running
if wait {
for {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this might take up 100% cpu. The blow might be better.

select {}

Some more references:
http://blog.sgmansfield.com/2016/06/how-to-block-forever-in-go/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good catch. I verified spawning 100 goroutines for multiple task pollers with the infinite for loop and saw the 100% usage in top. After changing to select this was no longer the case.

@v1r3n v1r3n merged commit 4318407 into Netflix:dev Mar 23, 2017
v1r3n added a commit that referenced this pull request Apr 11, 2017
* Add Go Client (Worker) Implementation (#133)

* Worker interfaces in Go

* Move external dependency of httpclient inside package (#135)

Http Client

* * Add optional tasks
* Fix for taskId not getting replaced for simple tasks in task input calculation
* License headers for go client

* fixed the sink name

* gradle updates (#147)

* 1.7.1 (#151)

* capture the event payload in the task's output

* prefix the internal events with conductor when using dynamic event names

* Update queue name

* add more details to action processor and workflow executor

* more details and streamlined key names

* do not add policies if empty

* * allow referencing more task  parameters in input/outputs
* Unit tests

* handle null

* minor changes and code cleanup
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants