Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test mainnet for Grant #3

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ func main() {
go func() {
defer workerWaitGroup.Done()

err := updatePoolStateWorker(ctx, exitChan, chainClient, poolsRepository)
if err != nil {
panic(err)
}
// err := updatePoolStateWorker(ctx, exitChan, chainClient, poolsRepository)
// if err != nil {
// panic(err)
// }
}()

err = e.Start(viper.GetString("server.address"))
Expand Down
23 changes: 23 additions & 0 deletions start
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
# This script is used for executing the process at different rates.
# When you are developing locally and running the docker-compose you need to sleep
# If you don't you will have to start the process like 3 times before it will connect to redis.
# This takes the debug variable from pipeline and determines if it needs to be used for the kubernetes deployments.
# The docker-compose automatically sets it to debug.
# One thing to add is to make the code load its debug value from this as well.
# When its Kubernetes deployment you can't mount directly to osmosis dir so we have to copy if the file and directory exist.
echo "Copy the config from the mount point to the osmosis application directory."
cp /osmosis-mount/config.json /osmosis/config.json || echo "not kubernetes deployment"
if [ "${DEBUG}" == "true" ]; then
echo "look at contents of the osmosis directory."
ls -lah /osmosis/
echo "Log the config for debugging"
cat /osmosis/config.json
echo "keep node alive on failure for debugging" >> status
echo "sleep for 30 seconds to let other services start"
sleep 30
echo "start process with debug and keep container running for troubleshooting purposes."
/bin/sqsd || echo "failed to start" && tail -f status
else
/bin/sqsd
fi