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.
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.