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

Make sync Tasks async #89

Merged
merged 8 commits into from
Jan 31, 2019
Merged

Make sync Tasks async #89

merged 8 commits into from
Jan 31, 2019

Conversation

pierre-emmanuelJ
Copy link
Member

@pierre-emmanuelJ pierre-emmanuelJ commented Jan 21, 2019

@pierre-emmanuelJ pierre-emmanuelJ added the enhancement New feature or request label Jan 21, 2019
cmd/request.go Outdated
return
}

<-sem
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the goal of this semaphore?

Yoan Blanc and others added 6 commits January 29, 2019 13:20
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
@greut
Copy link
Contributor

greut commented Jan 29, 2019

@greut
Copy link
Contributor

greut commented Jan 29, 2019

@pierre-emmanuelJ do you mind taking a look to have the elapsed time / done information?

@pierre-emmanuelJ
Copy link
Member Author

@pierre-emmanuelJ do you mind taking a look to have the elapsed time / done information?

Do you think this information can be added in egoscale for async request, and for sync request what do you think? Maybe can be same for sync request.

@greut
Copy link
Contributor

greut commented Jan 29, 2019

@pierre-emmanuelJ
Copy link
Member Author

decor.OnComplete(decor.AverageETA(decor.ET_STYLE_GO), "done!"),

@pierre-emmanuelJ
Copy link
Member Author

pierre-emmanuelJ commented Jan 29, 2019

But sorry my reply was more about: do you think it's possible in egoscale or cloudstack to calculate "time left" for an async request.

@greut
Copy link
Contributor

greut commented Jan 29, 2019

probably decor.Elapsed rather than ETA

Yoan Blanc added 2 commits January 30, 2019 07:24
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
@pierre-emmanuelJ
Copy link
Member Author

👍

@greut greut merged commit 9753036 into master Jan 31, 2019
@greut greut deleted the synctask-async branch January 31, 2019 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants