From 1c77aa49824da87779d334e546880945882c036d Mon Sep 17 00:00:00 2001 From: Andrey Date: Tue, 11 Feb 2025 23:11:15 +0200 Subject: [PATCH] Delete state clean for g7. --- crawlers/deploy/deploy-state.bash | 11 ----------- crawlers/deploy/deploy.bash | 12 ------------ crawlers/deploy/game7-state-clean.service | 11 ----------- crawlers/deploy/game7-state-clean.timer | 9 --------- 4 files changed, 43 deletions(-) delete mode 100644 crawlers/deploy/game7-state-clean.service delete mode 100644 crawlers/deploy/game7-state-clean.timer diff --git a/crawlers/deploy/deploy-state.bash b/crawlers/deploy/deploy-state.bash index acbcf49b..a2c2b084 100755 --- a/crawlers/deploy/deploy-state.bash +++ b/crawlers/deploy/deploy-state.bash @@ -79,8 +79,6 @@ GAME7_METADATA_SERVICE_FILE="game7-metadata.service" GAME7_METADATA_TIMER_FILE="game7-metadata.timer" GAME7_STATE_SERVICE_FILE="game7-state.service" GAME7_STATE_TIMER_FILE="game7-state.timer" -GAME7_STATE_CLEAN_SERVICE_FILE="game7-state-clean.service" -GAME7_STATE_CLEAN_TIMER_FILE="game7-state-clean.timer" # Game7 testnet GAME7_TESTNET_METADATA_SERVICE_FILE="game7-testnet-metadata.service" @@ -317,15 +315,6 @@ cp "${SCRIPT_DIR}/${GAME7_STATE_TIMER_FILE}" "/home/ubuntu/.config/systemd/user/ XDG_RUNTIME_DIR="/run/user/1000" systemctl --user daemon-reload XDG_RUNTIME_DIR="/run/user/1000" systemctl --user restart --no-block "${GAME7_STATE_TIMER_FILE}" -echo -echo -echo -e "${PREFIX_INFO} Replacing existing Game7 state clean service and timer with: ${GAME7_STATE_CLEAN_SERVICE_FILE}, ${GAME7_STATE_CLEAN_TIMER_FILE}" -chmod 644 "${SCRIPT_DIR}/${GAME7_STATE_CLEAN_SERVICE_FILE}" "${SCRIPT_DIR}/${GAME7_STATE_CLEAN_TIMER_FILE}" -cp "${SCRIPT_DIR}/${GAME7_STATE_CLEAN_SERVICE_FILE}" "/home/ubuntu/.config/systemd/user/${GAME7_STATE_CLEAN_SERVICE_FILE}" -cp "${SCRIPT_DIR}/${GAME7_STATE_CLEAN_TIMER_FILE}" "/home/ubuntu/.config/systemd/user/${GAME7_STATE_CLEAN_TIMER_FILE}" -XDG_RUNTIME_DIR="/run/user/1000" systemctl --user daemon-reload -XDG_RUNTIME_DIR="/run/user/1000" systemctl --user restart --no-block "${GAME7_STATE_CLEAN_TIMER_FILE}" - # Game7 testnet echo diff --git a/crawlers/deploy/deploy.bash b/crawlers/deploy/deploy.bash index 2dc3ecda..30772600 100755 --- a/crawlers/deploy/deploy.bash +++ b/crawlers/deploy/deploy.bash @@ -230,8 +230,6 @@ GAME7_METADATA_SERVICE_FILE="game7-metadata.service" GAME7_METADATA_TIMER_FILE="game7-metadata.timer" GAME7_STATE_SERVICE_FILE="game7-state.service" GAME7_STATE_TIMER_FILE="game7-state.timer" -GAME7_STATE_CLEAN_SERVICE_FILE="game7-state-clean.service" -GAME7_STATE_CLEAN_TIMER_FILE="game7-state-clean.timer" # Game7 testnet GAME7_TESTNET_METADATA_SERVICE_FILE="game7-testnet-metadata.service" @@ -1183,16 +1181,6 @@ cp "${SCRIPT_DIR}/${GAME7_STATE_TIMER_FILE}" "/home/ubuntu/.config/systemd/user/ XDG_RUNTIME_DIR="/run/user/1000" systemctl --user daemon-reload XDG_RUNTIME_DIR="/run/user/1000" systemctl --user restart --no-block "${GAME7_STATE_TIMER_FILE}" -echo -echo -echo -e "${PREFIX_INFO} Replacing existing Game7 state clean service and timer with: ${GAME7_STATE_CLEAN_SERVICE_FILE}, ${GAME7_STATE_CLEAN_TIMER_FILE}" -chmod 644 "${SCRIPT_DIR}/${GAME7_STATE_CLEAN_SERVICE_FILE}" "${SCRIPT_DIR}/${GAME7_STATE_CLEAN_TIMER_FILE}" -cp "${SCRIPT_DIR}/${GAME7_STATE_CLEAN_SERVICE_FILE}" "/home/ubuntu/.config/systemd/user/${GAME7_STATE_CLEAN_SERVICE_FILE}" -cp "${SCRIPT_DIR}/${GAME7_STATE_CLEAN_TIMER_FILE}" "/home/ubuntu/.config/systemd/user/${GAME7_STATE_CLEAN_TIMER_FILE}" -XDG_RUNTIME_DIR="/run/user/1000" systemctl --user daemon-reload -XDG_RUNTIME_DIR="/run/user/1000" systemctl --user restart --no-block "${GAME7_STATE_CLEAN_TIMER_FILE}" - - # Game7 testnet echo echo diff --git a/crawlers/deploy/game7-state-clean.service b/crawlers/deploy/game7-state-clean.service deleted file mode 100644 index da1e8b99..00000000 --- a/crawlers/deploy/game7-state-clean.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Execute Game7 state clean labels crawler -After=network.target - -[Service] -Type=oneshot -WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl -EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env -ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.state_crawler.cli clean-state-labels --blockchain game7 -N 10000 -CPUWeight=60 -SyslogIdentifier=game7-state-clean diff --git a/crawlers/deploy/game7-state-clean.timer b/crawlers/deploy/game7-state-clean.timer deleted file mode 100644 index 0e4b53e9..00000000 --- a/crawlers/deploy/game7-state-clean.timer +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Execute Game7 state clean labels crawler each 5m - -[Timer] -OnBootSec=50s -OnUnitActiveSec=5m - -[Install] -WantedBy=timers.target