Skip to content

fix: prevent database rebuild when server starting#269

Open
bjmmartin wants to merge 1 commit into
goccy:mainfrom
bjmmartin:fix/prevent-database-rebuild
Open

fix: prevent database rebuild when server starting#269
bjmmartin wants to merge 1 commit into
goccy:mainfrom
bjmmartin:fix/prevent-database-rebuild

Conversation

@bjmmartin

Copy link
Copy Markdown

While using the emulator, we encounter the same error as #207.

After looking a bit at the code, I found that when the server is starting, we try to reinsert all data, that are already in the database.

The proposal here is to rebuild the project only when the --data-from-yaml is provided.
So if we found a project, and we are just loading from the database, we stop here, but if we load with the option it removes the project and its jobs and dataset, and rebuild it from scratch.

I don't know all cases, so it might break some edge case, maybe it could be an option to the command.

Let me know if some changes are required. And thanks a lot for the project 🙏

@chrisK824

Copy link
Copy Markdown

Hey there @totem3 , have you seen this maybe? Is there a timeline estimate for this fix, if any?

Thanks im advance!

@chrisK824

Copy link
Copy Markdown

Hi @goccy , this one seems pretty useful to stay parked, do you agree?

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