Skip to content

feat(sdk): restart goroutines#5821

Merged
fsamin merged 2 commits into
masterfrom
feat/sdk/restart_goroutines
May 24, 2021
Merged

feat(sdk): restart goroutines#5821
fsamin merged 2 commits into
masterfrom
feat/sdk/restart_goroutines

Conversation

@fsamin

@fsamin fsamin commented May 19, 2021

Copy link
Copy Markdown
Member

Signed-off-by: francois samin francois.samin@corp.ovh.com

Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
yesnault
yesnault previously approved these changes May 19, 2021
@ovh-cds

ovh-cds commented May 19, 2021

Copy link
Copy Markdown
Collaborator

CDS Report build-all-cds#16031.0 ✘

  • Build
    • Build and Package All ✔
    • Build Debpacker ✔
    • Build OS-Ansible-Inventory ✔
    • Build SMTPMock ✘
    • Lint UI Translate ✔
    • Test CLI ✔
    • Test Engine ✘
    • Test SDK ✔
    • Test SDK Rust ✔
    • Test UI ✔

Comment thread sdk/goroutine.go
type GoRoutines struct {
mutex sync.Mutex
status map[string]bool
status []*GoRoutine

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we keep the mutex to protect the status slice ? In case Run is called by multiple routines ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done

Comment thread sdk/goroutine.go Outdated
return
case <-t.C:
for _, g := range m.status {
if !g.Active {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if !g.Active {
if !g.Active && g.Restart {

sguiheux
sguiheux previously approved these changes May 20, 2021
@ovh-cds

ovh-cds commented May 20, 2021

Copy link
Copy Markdown
Collaborator

CDS Report build-all-cds#16043.0 ✘

  • Build
    • Build and Package All ✔
    • Build Debpacker ✔
    • Build OS-Ansible-Inventory ✔
    • Build SMTPMock ✔
    • Lint UI Translate ✔
    • Test CLI ✔
    • Test Engine ✘
    • Test SDK ✔
    • Test SDK Rust ✔
    • Test UI ✔

Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
@fsamin fsamin dismissed stale reviews from sguiheux and yesnault via ad41eaa May 21, 2021 13:38
@ovh-cds

ovh-cds commented May 21, 2021

Copy link
Copy Markdown
Collaborator

CDS Report build-all-cds#16049.0 ✘

  • Build
    • Build and Package All ✔
    • Build Debpacker ✔
    • Build OS-Ansible-Inventory ✔
    • Build SMTPMock ✔
    • Lint UI Translate ✔
    • Test CLI ✔
    • Test Engine ✔
    • Test SDK ✔
    • Test SDK Rust ✔
    • Test UI ✔
  • Package
    • Docker ✔
  • Integration
    • Docker Compose Tests ✔
    • Standalone Tests ✘

@sonarqubecloud

Copy link
Copy Markdown

@fsamin fsamin merged commit f8d2b30 into master May 24, 2021
@fsamin fsamin deleted the feat/sdk/restart_goroutines branch June 25, 2021 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants