Skip to content

Commit

Permalink
Merge pull request #1003 from DaanVanVugt/bugfix/skip_processing_in_task
Browse files Browse the repository at this point in the history
skip post processing in task instead of scheduler
  • Loading branch information
fbacall committed Aug 2, 2024
2 parents 17b33fa + 9c55f95 commit 66484ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
if !schedules['ingestions'].nil?
every :"#{schedules['ingestions']['every']}", at: "#{schedules['ingestions']['at']}" do
rake 'tess:automated_ingestion'
rake 'tess:llm_post_processing' if TeSS::Config.llm_scraper['model_version'].present?
rake 'tess:llm_post_processing'
end
else
every :day, at: '3am' do
rake 'tess:automated_ingestion'
rake 'tess:llm_post_processing' if TeSS::Config.llm_scraper['model_version'].present?
rake 'tess:llm_post_processing'
end
end

Expand Down
2 changes: 2 additions & 0 deletions lib/tasks/tess.rake
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ namespace :tess do

desc 'run LLM post processing'
task llm_post_processing: :environment do
return unless TeSS::Config.llm_scraper['model_version'].present?

Llm.post_processing_task
end

Expand Down

0 comments on commit 66484ab

Please sign in to comment.