Start a new worker
Start a worker
Usage examples :
casperParser worker
# Will start the worker with the default values
# (Either from your config file or defined in the program)casperParser worker --queues blocks,1 --concurrency 20
# Will start the worker to handle only blocks and 20 concurrent workerscasperParser worker --redis 127.0.0.1:6379
# Will start the worker with a single redis server connection
# (Use ENV variables preferably to setup a secure redis connection)casperParser worker [flags]
-k, --concurrency int Number of concurrent workers to use. The database connection pool will be set to the same number (default 100)
-h, --help help for worker
-q, --queues strings Set queues with priority (default [blocks,1,deploys,1,contracts,1,era,1,auction,1,accounts,1])
-c, --cluster strings Redis cluster instance addresses. Priority over redis flag but not the sentinel flag.
--config string config file (default is $HOME/.casperParser or ./casperParser )
-d, --database string Postgres connection string. Prefer ENV variable to setup a secure connection (default "postgres://postgres:mypassword@localhost:5432/casper")
-m, --master string Redis sentinel master name (default "mymaster")
-r, --redis string Redis single instance address. Lowest priority over cluster & sentinel flag. (default "127.0.0.1:6379")
--rpc string Casper RPC endpoint (default "http://127.0.0.1:7777/rpc")
-s, --sentinel strings Redis sentinel addresses. Highest priority over redis & cluster flag.
- casperParser - casperParser help you parse and store off-chain data from the Casper Blockchain