chore(task): noop maintenance task verifying automatic run on deploy
This commit is contained in:
parent
efa744c227
commit
da1bf573e3
1 changed files with 28 additions and 0 deletions
|
@ -0,0 +1,28 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
module Maintenance
|
||||||
|
class T20241009NoopAttemptRunOnDeployTask < MaintenanceTasks::Task
|
||||||
|
# Documentation: cette tâche ne fait rien mais sert à vérifier
|
||||||
|
# qu'elle sera bien exécutée sur le déploiement suivant
|
||||||
|
# pour remplacer after party.
|
||||||
|
|
||||||
|
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
|
||||||
|
1.upto(10).to_a
|
||||||
|
end
|
||||||
|
|
||||||
|
def process(element)
|
||||||
|
# NOOP
|
||||||
|
end
|
||||||
|
|
||||||
|
def count
|
||||||
|
10
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue