Skip to content

Vie privée : permettre la désactivation du traitement d'archivage en cas de données incohérentes - #6220

Merged
vincentporte merged 2 commits into
masterfrom
vp/GEN-2497_suspend_with_env_var
Jun 3, 2025
Merged

Vie privée : permettre la désactivation du traitement d'archivage en cas de données incohérentes#6220
vincentporte merged 2 commits into
masterfrom
vp/GEN-2497_suspend_with_env_var

Conversation

@vincentporte

Copy link
Copy Markdown

🤔 Pourquoi ?

La commande notify_archive_users échoue lorsqu'une relation entre User et un autre modèle existe à tord pour un job_seeker

🍰 Comment ?

  1. ajout de la variable d'environnement SUSPEND_NOTIFY_ARCHIVE_USERS pour desactiver temporairement la commande notify_archive_users
  2. reactivation de la planification de la commande notify_archive_users

@vincentporte vincentporte self-assigned this May 28, 2025
@notion-workspace

Copy link
Copy Markdown

@vincentporte
vincentporte requested a review from xavfernandez May 28, 2025 11:20
@vincentporte vincentporte added the modifié Modifié dans le changelog. label May 28, 2025


class TestNotifyArchiveUsersManagementCommand:
@pytest.mark.parametrize("suspended", [True, False, None, "true"])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je ne comprends pas trop le choix des valeurs de ce parametrize : c'est la valeur du setting que tu modifies, pas celle de la variable d'environnement.
C'est donc nécessairement un booléen

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bien vu

@vincentporte
vincentporte force-pushed the vp/GEN-2497_suspend_with_env_var branch from a22b4c1 to fc4eb02 Compare June 2, 2025 07:15
@vincentporte
vincentporte requested a review from tonial June 2, 2025 07:16
Comment thread tests/archive/__snapshots__/tests_management_command.ambr
vincent porte added 2 commits June 3, 2025 13:45
Allow the command to be suspended using environment variables when a failure occurs, to avoid errors being sent every 5 minutes to sentry while waiting for data to be corrected
@vincentporte
vincentporte force-pushed the vp/GEN-2497_suspend_with_env_var branch from fc4eb02 to b9bc10a Compare June 3, 2025 11:47
@vincentporte
vincentporte added this pull request to the merge queue Jun 3, 2025
Merged via the queue into master with commit d4fa3ad Jun 3, 2025
@vincentporte
vincentporte deleted the vp/GEN-2497_suspend_with_env_var branch June 3, 2025 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants