Compare commits
1 Commits
master
...
lash/task-
Author | SHA1 | Date | |
---|---|---|---|
|
31268c0b47 |
@ -203,6 +203,9 @@ def main():
|
|||||||
argv.append(config.get('CELERY_QUEUE'))
|
argv.append(config.get('CELERY_QUEUE'))
|
||||||
argv.append('-n')
|
argv.append('-n')
|
||||||
argv.append(config.get('CELERY_QUEUE'))
|
argv.append(config.get('CELERY_QUEUE'))
|
||||||
|
argv.append('--config')
|
||||||
|
argv.append('celeryconfig')
|
||||||
|
|
||||||
|
|
||||||
BaseTask.default_token_symbol = config.get('CIC_DEFAULT_TOKEN_SYMBOL')
|
BaseTask.default_token_symbol = config.get('CIC_DEFAULT_TOKEN_SYMBOL')
|
||||||
BaseTask.default_token_address = registry.by_name(BaseTask.default_token_symbol)
|
BaseTask.default_token_address = registry.by_name(BaseTask.default_token_symbol)
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
[signer]
|
|
||||||
secret = deadbeef
|
|
||||||
#database = crypto-dev-signer
|
|
||||||
socket_path = ipc:///run/crypto-dev-signer/jsonrpc.ipc
|
|
@ -1,8 +0,0 @@
|
|||||||
[database]
|
|
||||||
NAME=cic-signer
|
|
||||||
USER=
|
|
||||||
PASSWORD=
|
|
||||||
HOST=
|
|
||||||
PORT=
|
|
||||||
ENGINE=
|
|
||||||
DRIVER=
|
|
@ -7,6 +7,7 @@ import json
|
|||||||
# external imports
|
# external imports
|
||||||
import celery
|
import celery
|
||||||
import confini
|
import confini
|
||||||
|
import celery.utils.graph
|
||||||
|
|
||||||
# local imports
|
# local imports
|
||||||
from cic_eth.api import Api
|
from cic_eth.api import Api
|
||||||
@ -35,7 +36,7 @@ class Fmtr(celery.utils.graph.GraphFormatter):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
api = Api(
|
api = Api(
|
||||||
config.get('CIC_CHAIN_SPEC'),
|
config.get('CHAIN_SPEC'),
|
||||||
queue='cic-eth',
|
queue='cic-eth',
|
||||||
#callback_param='{}:{}:{}:{}'.format(args.redis_host_callback, args.redis_port_callback, redis_db, redis_channel),
|
#callback_param='{}:{}:{}:{}'.format(args.redis_host_callback, args.redis_port_callback, redis_db, redis_channel),
|
||||||
#callback_task='cic_eth.callbacks.redis.redis',
|
#callback_task='cic_eth.callbacks.redis.redis',
|
||||||
|
Loading…
Reference in New Issue
Block a user