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

refactor: Consolidated SessionServices into common #194

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dbrasseur-aneo
Copy link
Contributor

No description provided.

Logger = loggerFactory?.CreateLogger<T>();
chunkSubmitSize_ = chunkSubmitSize;
}
public readonly ChannelPool ChannelPool;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need the channel pool to be public?



#pragma warning restore CS1591
public readonly TaskOptions TaskOptions;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to store the task options? That is the role of core, isn't it?

Seconds = 300,
},
MaxRetries = 3,
Priority = 1,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a Priority of 2 would be better by default (2 is neither the minimum, nor the maximum).

Comment on lines 947 to 953
partitions ??
(string.IsNullOrEmpty(defaultTaskOptions.PartitionId)
? Enumerable.Empty<string>()
: new List<string>
{
defaultTaskOptions.PartitionId,
}),
Copy link
Contributor

Choose a reason for hiding this comment

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

That's core responsibility

public SessionService CreateSession(TaskOptions taskOptions = null)
{
ControlPlaneConnection();

return new SessionService(GrpcPool,
LoggerFactory,
taskOptions);
taskOptions ?? SessionService.GetDefaultTaskOptions(EngineType.Symphony),
Copy link
Contributor

Choose a reason for hiding this comment

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

Options are not impacted in other clients ?

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.

3 participants