Skip to content

Conversation

@grphil
Copy link
Collaborator

@grphil grphil commented May 13, 2025

Add job cancel, polygon import and auto ip detection for invoker

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Этот код не стоит смотреть, он максимально на коленке сделан из моего импорта на еджадж и понятное дело что при появлении нормального клиента с условиями задач он должен быть переделан

@grphil grphil requested a review from Copilot May 13, 2025 15:00
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

fillInStorageConfig(config.Storage)
}
if config.Invoker != nil {
FillInInvokerConfig(config.Invoker)
Copy link
Collaborator

Choose a reason for hiding this comment

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

можно не экспортировать видимо

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Не, оно в тестах инвокера нужно

i.givenJobs[job.ID] = job
i.firstNotGivenTest++

for givenJobID, testingJob := range i.givenJobs {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Выдача теста за линию теперь...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Всм, given jobs это те джобы, которые сейчас работают, а не все вообще которые были


if result.Verdict != verdict.OK {
for runningJobID, runningJob := range r.testingJobs {
if slices.Contains(runningJob.RequiredJobIDs, result.Job.ID) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

мб сделать RequiredJobIDs сетом?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Хз, мне кажется там зависимость будет обычно от настолько малого числа джобов, что это ни на что не повлияет. Плюс в json тогда превращать сложнее будет

@grphil grphil merged commit 9889f19 into main May 25, 2025
1 check passed
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.

4 participants