Skip to content

Does it make sense to use maintenance_task for reports generated in a client-facing dashboard? #794

Closed Answered by etiennebarrie
machty asked this question in Q&A
Discussion options

You must be logged in to vote

maintenance_tasks is meant to be used to replace Active Record migrations which only change data, so that doesn't fit too well. You'd be better off using your own model to store progress and job-iteration like the gem does, to generate the reporting. That way you could add more logic to your model like authorization, validations, etc. which the gem isn't well suited for.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by machty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants