Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix(task): fixed the issue where the default startup timeout was producing agreements and activities on many providers #73
fix(task): fixed the issue where the default startup timeout was producing agreements and activities on many providers #73
Changes from 14 commits
08f9a27
b4d2e89
9ebb1b7
d57d453
02c2af3
438ab59
184f2e8
c9ffc29
9d79a6b
63edf60
f58ef63
6f88bcd
d9531cd
4ada9e6
29dd5f9
059947c
af70f85
f6d68a8
e9453a7
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In one way that's a BC-breaking change (removal of the field). We will have to point this out in the release notes. Probably that will bump the version of the TE :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so, this is just a change in the
config
file. The publicExecutorOptions
remain unchanged as the correcttaskStartupTimeout
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a more elegant solution would be to move this logic to
TaskService.run
. You have a loop there already, you can check themarketService
in that loop for proposals, and if there are none, sleep and don't take a task from the queue.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, it will be much simpler in
TaskService
. I moved this