-
Notifications
You must be signed in to change notification settings - Fork 14
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
#2181 - Queued Assessments - Assessment Workflow Enqueuer Scheduler - Cancel Assessment #2375
Conversation
sources/packages/backend/apps/api/src/services/application/application.service.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/apps/api/src/services/application/application.service.ts
Outdated
Show resolved
Hide resolved
...rc/processors/schedulers/workflow/_tests_/assessment-workflow-enqueuer.scheduler.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...rc/processors/schedulers/workflow/_tests_/assessment-workflow-enqueuer.scheduler.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...rc/processors/schedulers/workflow/_tests_/assessment-workflow-enqueuer.scheduler.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...rc/processors/schedulers/workflow/_tests_/assessment-workflow-enqueuer.scheduler.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...rc/processors/schedulers/workflow/_tests_/assessment-workflow-enqueuer.scheduler.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...rc/processors/schedulers/workflow/_tests_/assessment-workflow-enqueuer.scheduler.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...queue-consumers/src/processors/schedulers/workflow/assessment-workflow-enqueuer.scheduler.ts
Outdated
Show resolved
Hide resolved
...rc/processors/schedulers/workflow/_tests_/assessment-workflow-enqueuer.scheduler.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...rc/processors/schedulers/workflow/_tests_/assessment-workflow-enqueuer.scheduler.e2e-spec.ts
Outdated
Show resolved
Hide resolved
...queue-consumers/src/processors/schedulers/workflow/assessment-workflow-enqueuer.scheduler.ts
Show resolved
Hide resolved
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.
Thanks for making the changes, only minor comments are missing.
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.
Thanks for making the changes 👍
status: StudentAssessmentStatus.CancellationRequested, | ||
}) | ||
// This condition may not be directly related to the current application logic but has been added to ensure that | ||
// at any given time now or future the queue does not pick an application to cancel when there is already an |
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.
👍
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.
LGTM 👍 Great work @andrepestana-aot . Pls take a look at the minor comments added by the devs
if (!applications.length) { | ||
return; | ||
} | ||
const children = await processInParallel( |
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.
Should we also consider specifying the 3rd parameter: maxParallelRequests
here?
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.
Hope that it was clarified but when not provided it will be set to the amount of CPUs.
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.
Nice work @andrepestana-aot 👍 Just added one info comment.
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.
LGTM, nice work @andrepestana-aot
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
Thanks for doing the changes, looks good 👍
CancellationRequested
but no other assessments with statusCancellationQueued
.CancellationRequested
.Cancelled
in thecancel-application-assessment.processor.ts
.workflow-wrap-up
to only change the status toComplete
if the assessment is not already cancelled or it is not in the process of being cancelled.