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: Start deep refactor of the client part of the project. #208

Draft
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

wkirschenmann
Copy link
Contributor

@wkirschenmann wkirschenmann commented Aug 21, 2023

Begin of work.

  • Add an first API abstraction over gRPC
  • Use new APIs instead of the legacy Submitter.SubmitterClient
  • Add public API for Unified
  • Add public API for Symphony
  • Integrate new unitary tests
  • Provide Async version of the new APIs
  • Remove custom code for retry policy
  • Simplify submission batching/bufferization

@wkirschenmann wkirschenmann force-pushed the WK-clean branch 5 times, most recently from eb9c702 to 97039b2 Compare August 21, 2023 19:33
@dbrasseur-aneo
Copy link
Contributor

For the changes visible to the user, we need to document extensively all the name changes and api changes. Will be very important to create a proper changelog

@@ -24,7 +24,7 @@ namespace ArmoniK.DevelopmentKit.Client.Common.Status;
/// List of status for task and result in Armonik
/// </summary>
[PublicAPI]
public enum ArmonikStatusCode
public enum ArmonikTaskStatusCode
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public enum ArmonikTaskStatusCode
public enum ArmoniKTaskStatusCode

Client/src/Common/Submitter/ApiExt/ArmoniKResultStatus.cs Outdated Show resolved Hide resolved
@wkirschenmann wkirschenmann marked this pull request as ready for review August 22, 2023 15:38
@@ -156,7 +156,7 @@ private async Task<IEnumerable<TaskDetailed>> GetDistribution(int nRows)

var taskRawData = new List<TaskDetailed>();

await foreach (var taskRaw in RetrieveAllTasksStats(service.GetChannel(),
await foreach (var taskRaw in RetrieveAllTasksStats(null,
Copy link
Contributor

Choose a reason for hiding this comment

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

why null as input ?

{
Log.LogWarning($"Task canceled : {taskId}. Status {e.StatusCode.ToString()} Message : {e.Message}\nDetails : {e.OutputDetails}");
Copy link
Contributor

Choose a reason for hiding this comment

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

.ToString may not be needed anymore

@aneojgurhem aneojgurhem marked this pull request as draft January 4, 2024 10:19
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