Canop / bacon

background rust code check
https://dystroy.org/bacon
GNU Affero General Public License v3.0
1.75k stars 61 forks source link

Relaunch blocking tasks #216

Closed musjj closed 2 hours ago

musjj commented 3 hours ago

It looks like that blocking tasks (e.g. running a web server) aren't automatically restarted when there are changes. Is there a way to configure so that it's automatically killed and restarted?

musjj commented 2 hours ago

Oh it looks like that there was a change in the last version:

https://github.com/Canop/bacon/releases/tag/v2.21.0

With on_change_strategy = "kill_then_restart", the current job is immediately killed and a new job restarted. This is the behavior that bacon had before this PR. It has the downside of never allowing any job to complete if you're always changing files and the job is just a little too long to finish between changes.

It looks like that the docs in the website is not up-to-date yet.

Canop commented 2 hours ago

Yes. I reopen the issue because I should improve the default bacon.toml file and maybe the doc to explain that

Canop commented 2 hours ago

website updated: https://dystroy.org/bacon/config/#jobs

But I'll add a comment in the default bacon.toml too