# frozen_string_literal: true module <%= tasks_module %> <% module_namespacing do -%> class <%= class_name %>Task < MaintenanceTasks::Task # Documentation: cette tâche modifie les données pour… include RunnableOnDeployConcern include StatementsHelpersConcern # Uncomment only if this task MUST run imperatively on its first deployment. # If possible, leave commented for manual execution later. # run_on_first_deploy def collection # Collection to be iterated over # Must be Active Record Relation or Array end def process(element) # The work to be done in a single iteration of the task. # This should be idempotent, as the same element may be processed more # than once if the task is interrupted and resumed. end def count # Optionally, define the number of rows that will be iterated over # This is used to track the task's progress end end <% end -%> end