def queue_send_eth( self, signing_address, amount_wei, recipient_address, prior_tasks, posterior_tasks, ): """ This is a slightly smelly special case where the transaction supervisor needs to call the higher-level task manager to get a send_eth task created for topup purposes. """ sig = signature(eth_endpoint('send_eth'), kwargs={ 'signing_address': signing_address, 'amount_wei': amount_wei, 'recipient_address': recipient_address, 'prior_tasks': prior_tasks, 'posterior_tasks': posterior_tasks }) return celery_utils.queue_sig(sig)
def _queue_attempt_transaction(self, task_uuid): celery_utils.queue_sig( self.transaction_supervisor.sigs.attempt_transaction(task_uuid))
def queue_attempt_transaction(self, task_uuid, countdown=0): return celery_utils.queue_sig(self.sigs.attempt_transaction(task_uuid), countdown)