Skip to content

Add AnswerAnalysisJob to kick off separate analysis jobs#762

Merged
jackbot merged 1 commit into
mainfrom
answer-analysis-job
Jan 8, 2026
Merged

Add AnswerAnalysisJob to kick off separate analysis jobs#762
jackbot merged 1 commit into
mainfrom
answer-analysis-job

Conversation

@jackbot
Copy link
Copy Markdown
Contributor

@jackbot jackbot commented Jan 8, 2026

We're going to be adding a few more analysis jobs soon. Rather than
adding more job execution code to the ComposeAnswerJob class, this
commit adds a wrapper AnswerAnalysisJob job which just exists to kick
off all the analysis jobs.

We're going to be adding a few more analysis jobs soon. Rather than
adding more job execution code to the `ComposeAnswerJob` class, this
commit adds a wrapper `AnswerAnalysisJob` job which just exists to kick
off all the analysis jobs.
@govuk-ci govuk-ci temporarily deployed to govuk-chat-answer-analy-5lgiik January 8, 2026 10:02 Inactive
Copy link
Copy Markdown
Contributor

@davidgisbey davidgisbey left a comment

Choose a reason for hiding this comment

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

Looks good to me

@jackbot jackbot merged commit f8293b1 into main Jan 8, 2026
12 checks passed
@jackbot jackbot deleted the answer-analysis-job branch January 8, 2026 10:23
# kicks off all analysis jobs.
AnswerAnalysis::TagTopicsJob.perform_later(answer.id)
AnswerAnalysis::AnswerRelevancyJob.perform_later(answer.id)
AnswerAnalysisJob.perform_later(answer.id)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you think there are benefits to having this run as an async job over running it direct - say having a method of AnswerAnalysis.enqueue_async_analysis(answer) ?

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