theSteveMitchell / after_party

Automated post-deploy tasks for Ruby/Rails. Your deployment is the party. This is the after party
MIT License
241 stars 50 forks source link

Option to rescue from errors and continue #53

Open rocketbop opened 5 years ago

rocketbop commented 5 years ago

Sometimes I find that when running locally if I run the outstanding tasks, an error is encountered due to my local data being outdated or too new (the author of the task assuming I had a record with a role of admin, say).

Ideally tasks would be written in a safe way using safe navigation operator, etc, but as they are not always done like this, I would like a way to run a task with a option to rescue from all errors, in order to pass older tasks.

This would be useful for development mode, and by no means the default.

The API would be something like rake after_party:run["rescue_all"]

I would be happy to create a PR if you would consider this addition.