Use apache airflow to run task exactly once
Apache airflow is a great tool to manage recurring tasks, which should run e.g. every day. Usually, the advice is to make the tasks idempotent. This allows to rerun jobs again or after they failed and will still produce the same outcome.