Refactor AI pipeline terminology for consistency
continuous-integration/drone/push Build is passing

- Updated comments and logging messages in the worker and related files to replace "daily-run" with "auto run" for clarity and consistency.
- Adjusted the `WorkerConfig` struct to reflect the new terminology in configuration settings.
- Renamed functions and test cases to align with the updated terminology, enhancing code readability and maintainability.

This change improves the clarity of the AI pipeline's functionality within the tender management system.
This commit is contained in:
Mazyar
2026-07-13 11:54:58 +03:30
parent 6ee81c3581
commit 51a1a6aa82
5 changed files with 39 additions and 39 deletions
@@ -6,7 +6,7 @@ import (
"tm/pkg/ai_summarizer"
)
func TestIsPipelineDailyRunInProgress(t *testing.T) {
func TestIsPipelineRunInProgress(t *testing.T) {
tests := []struct {
name string
report *ai_summarizer.PipelineReportResponse
@@ -22,8 +22,8 @@ func TestIsPipelineDailyRunInProgress(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := isPipelineDailyRunInProgress(tt.report); got != tt.want {
t.Fatalf("isPipelineDailyRunInProgress() = %v, want %v", got, tt.want)
if got := isPipelineRunInProgress(tt.report); got != tt.want {
t.Fatalf("isPipelineRunInProgress() = %v, want %v", got, tt.want)
}
})
}