Skip to content

Retrain and save fresh recommendations on a schedule #71

Open

Description

@selvarajuv

Blocked by: #70

Problem

New events only change the rates the manager sees after the model retrains and new recommendations are saved, and both only happen when someone triggers them by hand.

Goal

After each data refresh, the model retrains when needed and fresh recommendations for the next 30 nights are saved, so rates reflect new events within hours.

Scope

  • Add retraining and saving recommendations to the schedule, after the events and weather refresh.
  • Decide the order and timing: refresh, then retrain, then save recommendations. Retrain on every run or less often, depending on how long it takes.
  • The same failure visibility as the daily refresh.

Considerations

  • How long and how much a retrain costs on the hotel's real data decides how often it can run.
  • Training while a refresh is still running would use partial data; wait for the refresh jobs to finish first.
  • Once manager feedback exists, the next scheduled retrain should include it.

Acceptance criteria

  • Without anyone calling the API, a new event leads to updated recommendations within the agreed time.
  • Each scheduled run saves recommendations for the next 30 nights.
  • Failed retrains or saves are visible to the team.

Activity

  1. added
    featureIntroduces a new and complete feature
    plumbingPlumbing and integration: CORS, settings, deploy, scheduler, CI, tests, frontend-API wiring
    on Oct 21, 2026
  2. changed the title [-]Rates refresh by themselves and show when they were last updated[/-] [+]Retrain and save fresh recommendations on a schedule[/+] on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIntroduces a new and complete featureplumbingPlumbing and integration: CORS, settings, deploy, scheduler, CI, tests, frontend-API wiring

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions