Skip to content

Commit

Permalink
Rename delete_outdated_conversations.py to anonymize_outdated_convers…
Browse files Browse the repository at this point in the history
…ations.py
  • Loading branch information
Guilouf committed Dec 30, 2024
1 parent 5819bf4 commit 3762179
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash -l

# delete outdated conversations
# anonymize outdated conversations

# Do not run if this env var is not set:
if [[ -z "$CRON_CONVERSATIONS_DELETE_OUTDATED" ]]; then
echo "CRON_CONVERSATIONS_DELETE_OUTDATED not set. Exiting..."
if [[ -z "$CRON_CONVERSATIONS_ANONYMIZE_OUTDATED" ]]; then
echo "CRON_CONVERSATIONS_ANONYMIZE_OUTDATED not set. Exiting..."
exit 0
fi

Expand All @@ -19,4 +19,4 @@ fi
# $APP_HOME is set by default by clever cloud.
cd $APP_HOME

django-admin delete_outdated_conversations
django-admin anonymize_outdated_conversations
2 changes: 1 addition & 1 deletion clevercloud/cron.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"15 0 * * * $ROOT/clevercloud/stats_export_user_download_list_to_file.sh",
"30 0 * * * $ROOT/clevercloud/stats_export_user_search_list_to_file.sh",
"0 1 * * * $ROOT/clevercloud/tenders_update_count_fields.sh",
"0 6 * * * $ROOT/clevercloud/conversations_delete_outdated.sh",
"0 6 * * * $ROOT/clevercloud/conversations_anonymize_outdated.sh",
"0 7 * * 1 $ROOT/clevercloud/siaes_sync_with_emplois_inclusion.sh",
"5 7 * * 1 $ROOT/clevercloud/siaes_sync_c2_c4.sh",
"10 7 * * 1 $ROOT/clevercloud/siaes_update_api_entreprise_fields.sh",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

class Command(BaseCommand):
"""
Command to delete outdated conversations
Command to anonymize outdated conversations
Note: run via a CRON every day
Usage: python manage.py delete_outdated_conversations
Usage: python manage.py anonymize_outdated_conversations
"""

def handle(self, *args, **options):
Expand Down

0 comments on commit 3762179

Please sign in to comment.