diff --git a/crawlers/deploy/xai-metadata.service b/crawlers/deploy/xai-metadata.service new file mode 100644 index 00000000..7580ad24 --- /dev/null +++ b/crawlers/deploy/xai-metadata.service @@ -0,0 +1,11 @@ +[Unit] +Description=Execute metadata 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.metadata_crawler.cli crawl --blockchain xai +CPUWeight=60 +SyslogIdentifier=xai-metadata \ No newline at end of file diff --git a/crawlers/deploy/xai-metadata.timer b/crawlers/deploy/xai-metadata.timer new file mode 100644 index 00000000..f4631718 --- /dev/null +++ b/crawlers/deploy/xai-metadata.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Execute Xai metadata crawler each 10m + +[Timer] +OnBootSec=20s +OnUnitActiveSec=60m + +[Install] +WantedBy=timers.target diff --git a/crawlers/deploy/xai-sepolia-metadata.service b/crawlers/deploy/xai-sepolia-metadata.service new file mode 100644 index 00000000..497e1e4b --- /dev/null +++ b/crawlers/deploy/xai-sepolia-metadata.service @@ -0,0 +1,11 @@ +[Unit] +Description=Execute metadata 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.metadata_crawler.cli crawl --blockchain xai_sepolia +CPUWeight=60 +SyslogIdentifier=xai-sepolia-metadata \ No newline at end of file diff --git a/crawlers/deploy/xai-sepolia-metadata.timer b/crawlers/deploy/xai-sepolia-metadata.timer new file mode 100644 index 00000000..ed0d6d27 --- /dev/null +++ b/crawlers/deploy/xai-sepolia-metadata.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Execute Xai sepolia metadata crawler each 10m + +[Timer] +OnBootSec=20s +OnUnitActiveSec=60m + +[Install] +WantedBy=timers.target diff --git a/crawlers/deploy/xai-sepolia-state-clean.service b/crawlers/deploy/xai-sepolia-state-clean.service new file mode 100644 index 00000000..f08be84c --- /dev/null +++ b/crawlers/deploy/xai-sepolia-state-clean.service @@ -0,0 +1,11 @@ +[Unit] +Description=Execute 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 xai -N 10000 +CPUWeight=60 +SyslogIdentifier=xai-sepolia-state-clean \ No newline at end of file diff --git a/crawlers/deploy/xai-sepolia-state-clean.timer b/crawlers/deploy/xai-sepolia-state-clean.timer new file mode 100644 index 00000000..8b04aa7e --- /dev/null +++ b/crawlers/deploy/xai-sepolia-state-clean.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Execute Xai sepolia state clean labels crawler each 25m + +[Timer] +OnBootSec=50s +OnUnitActiveSec=25m + +[Install] +WantedBy=timers.target diff --git a/crawlers/deploy/xai-sepolia-state.service b/crawlers/deploy/xai-sepolia-state.service new file mode 100644 index 00000000..27088dd1 --- /dev/null +++ b/crawlers/deploy/xai-sepolia-state.service @@ -0,0 +1,11 @@ +[Unit] +Description=Execute state 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 crawl-jobs --moonstream-token "${MOONSTREAM_PUBLIC_QUERIES_DATA_ACCESS_TOKEN}" --blockchain xai_sepolia --infura +CPUWeight=60 +SyslogIdentifier=sepolia-state \ No newline at end of file diff --git a/crawlers/deploy/xai-sepolia-state.timer b/crawlers/deploy/xai-sepolia-state.timer new file mode 100644 index 00000000..08e448e7 --- /dev/null +++ b/crawlers/deploy/xai-sepolia-state.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Execute Xai sepolia state crawler each 10m + +[Timer] +OnBootSec=15s +OnUnitActiveSec=10m + +[Install] +WantedBy=timers.target diff --git a/crawlers/deploy/xai-state-clean.service b/crawlers/deploy/xai-state-clean.service new file mode 100644 index 00000000..6c797e3d --- /dev/null +++ b/crawlers/deploy/xai-state-clean.service @@ -0,0 +1,11 @@ +[Unit] +Description=Execute 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 xai -N 10000 +CPUWeight=60 +SyslogIdentifier=xai-state-clean \ No newline at end of file diff --git a/crawlers/deploy/xai-state-clean.timer b/crawlers/deploy/xai-state-clean.timer new file mode 100644 index 00000000..a3e7c748 --- /dev/null +++ b/crawlers/deploy/xai-state-clean.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Execute Xai state clean labels crawler each 25m + +[Timer] +OnBootSec=50s +OnUnitActiveSec=25m + +[Install] +WantedBy=timers.target diff --git a/crawlers/deploy/xai-state.service b/crawlers/deploy/xai-state.service new file mode 100644 index 00000000..e3c835de --- /dev/null +++ b/crawlers/deploy/xai-state.service @@ -0,0 +1,11 @@ +[Unit] +Description=Execute state 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 crawl-jobs --moonstream-token "${MOONSTREAM_PUBLIC_QUERIES_DATA_ACCESS_TOKEN}" --blockchain xai --infura +CPUWeight=60 +SyslogIdentifier=xai-state \ No newline at end of file diff --git a/crawlers/deploy/xai-state.timer b/crawlers/deploy/xai-state.timer new file mode 100644 index 00000000..e4b7d192 --- /dev/null +++ b/crawlers/deploy/xai-state.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Execute Xai state crawler each 10m + +[Timer] +OnBootSec=15s +OnUnitActiveSec=10m + +[Install] +WantedBy=timers.target