diff --git a/app/app/urls.py b/app/app/urls.py index 34a56402dec..4ddfd861ee1 100644 --- a/app/app/urls.py +++ b/app/app/urls.py @@ -62,7 +62,6 @@ # oauth2 provider url('^o/', include('oauth2_provider.urls', namespace='oauth2_provider')), path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'), - url('^api/v1/bounty/create', dashboard.views.create_bounty, name='create_bounty'), # inbox diff --git a/app/kudos/tasks.py b/app/kudos/tasks.py index db6b87415e1..aaf035e6f7b 100644 --- a/app/kudos/tasks.py +++ b/app/kudos/tasks.py @@ -1,3 +1,5 @@ +import time + from app.redis_service import RedisService from celery import app from celery.utils.log import get_task_logger @@ -22,9 +24,12 @@ def mint_token_request(self, token_req_id, retry=False): """ with redis.lock("tasks:token_req_id:%s" % token_req_id, timeout=LOCK_TIMEOUT): from kudos.management.commands.mint_all_kudos import sync_latest + from dashboard.utils import has_tx_mined obj = TokenRequest.objects.get(pk=token_req_id) tx_id = obj.mint() if tx_id: + while not has_tx_mined(tx_id, obj.network): + time.sleep(1) sync_latest(0) sync_latest(1) sync_latest(2) diff --git a/app/kudos/views.py b/app/kudos/views.py index 9ac25b7afa4..afdea7fc675 100644 --- a/app/kudos/views.py +++ b/app/kudos/views.py @@ -665,7 +665,7 @@ def redeem_bulk_coupon(coupon, profile, address, ip_address, save_addr=False): else: signed = w3.eth.account.signTransaction(tx, private_key) - retry_later = True + retry_later = False try: txid = w3.eth.sendRawTransaction(signed.rawTransaction).hex() except Exception as e: