Add state cleaner.

pull/737/head
Andrey 2022-12-15 17:34:49 +02:00
rodzic e64bb7fcad
commit 9cfd12dc8d
2 zmienionych plików z 22 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,13 @@
[Unit]
Description=Execute state clean labels crawler
After=network.target
[Service]
Type=oneshot
User=ubuntu
Group=www-data
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 --access-id "${NB_CONTROLLER_ACCESS_ID}" clean-state-labels --blockchain mumbai -N 10000
CPUWeight=60
SyslogIdentifier=polygon-state-clean

Wyświetl plik

@ -0,0 +1,9 @@
[Unit]
Description=Execute Polygon state clean labels crawler each 25m
[Timer]
OnBootSec=50s
OnUnitActiveSec=25m
[Install]
WantedBy=timers.target