Skip to content

Conversation

@zhogu
Copy link

@zhogu zhogu commented Oct 22, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 22, 2025 11:57
@zhogu zhogu requested review from hippogr and yukirora October 22, 2025 11:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for job type classification in the job protocol, enabling jobs to be categorized as 'inference', 'training', or 'others'. The implementation includes validation logic for inference jobs that requires specific parameters.

Key Changes:

  • Added jobType field to the protocol schema with validation
  • Implemented validation for inference jobs requiring INTERNAL_SERVER_IP, INTERNAL_SERVER_PORT, and API_KEY parameters
  • Updated job controller to tag jobs with their type

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/rest-server/src/config/v2/protocol.js Added jobType field to protocol schema with enum constraint
src/rest-server/src/middlewares/v2/protocol.js Implemented validation logic for jobType and inference job parameters
src/rest-server/src/controllers/v2/job.js Added jobType extraction and job tagging

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

}
}

// check jobType
Copy link

Copilot AI Oct 22, 2025

Choose a reason for hiding this comment

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

Corrected spelling of 'protocal' in PR title to 'protocol'. Note: There's a trailing space after the comment that should be removed.

Suggested change
// check jobType
// check jobType

Copilot uses AI. Check for mistakes.
const frameworkName = `${userName}~${jobName}`;

const jobType = res.locals.protocol.jobType || 'others';

Copy link

Copilot AI Oct 22, 2025

Choose a reason for hiding this comment

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

Line 204 contains trailing whitespace. Remove the trailing space to maintain code cleanliness.

Suggested change

Copilot uses AI. Check for mistakes.
@yukirora yukirora changed the title support inference/training jobType in job protocal RestServer - support inference/training jobType in job protocal Oct 27, 2025
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