Skip to content

Fix: no models ready to run message shouldn't error #3644

Merged
treysp merged 1 commit intomainfrom
trey/fix-next-model-start
Jan 17, 2025
Merged

Fix: no models ready to run message shouldn't error #3644
treysp merged 1 commit intomainfrom
trey/fix-next-model-start

Conversation

@treysp
Copy link
Copy Markdown
Contributor

@treysp treysp commented Jan 16, 2025

When no models are ready to run, the sqlmesh run command issues a message stating when the next model will be ready to run.

Some model kinds, like seed and symbolic, do not have a "ready" time. Currently, we error if a project only contains these kinds of models.

This PR updates the code to handle this situation, omitting the time when next model ready from the message if it cannot be calculated.

@treysp treysp requested a review from georgesittas January 16, 2025 21:06
Copy link
Copy Markdown
Collaborator

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

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

Thanks for checking this out! FYI @benfdking.

@treysp treysp force-pushed the trey/fix-next-model-start branch from 32375de to c67eb29 Compare January 16, 2025 21:46
@treysp treysp merged commit a977aea into main Jan 17, 2025
@treysp treysp deleted the trey/fix-next-model-start branch January 17, 2025 16:35
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.

2 participants