From da1bf573e381a6fdfde0ff1f8e311e1b7b1611f8 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Wed, 9 Oct 2024 12:41:49 +0200 Subject: [PATCH] chore(task): noop maintenance task verifying automatic run on deploy --- ...0241009_noop_attempt_run_on_deploy_task.rb | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app/tasks/maintenance/t20241009_noop_attempt_run_on_deploy_task.rb diff --git a/app/tasks/maintenance/t20241009_noop_attempt_run_on_deploy_task.rb b/app/tasks/maintenance/t20241009_noop_attempt_run_on_deploy_task.rb new file mode 100644 index 000000000..36c5ae2e2 --- /dev/null +++ b/app/tasks/maintenance/t20241009_noop_attempt_run_on_deploy_task.rb @@ -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