soonq/task.py
def delay(self, *args, **kwargs):
        """Have the broker enqueue this task, thereby delaying its
        execution until some future time.
        """
        args, kwargs = self.scrub_inputs(args, kwargs)
        try:
            self.task_id = str(uuid.uuid4())
            task = dict(
                task_id=self.task_id,
                args=args,
                kwargs=kwargs,
            )
            self.broker.enqueue(item=task, queue_name=self.task_name)
            self.set_status("enqueued")
            echo(f"Queued task: {self.task_id}")
        except Exception:
            raise RuntimeError(f"Unable to publish task {self.task_id} to the broker.")
Have the broker enqueue this task, thereby delaying its
        execution until some future time.
        
Have the broker enqueue this task, thereby delaying its
execution until some future time.
Have the broker enqueue this task thereby delaying its execution until some future time .
def delay(self, *args, **kwargs):
        args, kwargs = self.scrub_inputs(args, kwargs)
        try:
            self.task_id = str(uuid.uuid4())
            task = dict(
                task_id=self.task_id,
                args=args,
                kwargs=kwargs,
            )
            self.broker.enqueue(item=task, queue_name=self.task_name)
            self.set_status("enqueued")
            echo(f"Queued task: {self.task_id}")
        except Exception:
            raise RuntimeError(f"Unable to publish task {self.task_id} to the broker.")
def delay ( self , * args , ** kwargs ) : args , kwargs = self . scrub_inputs ( args , kwargs ) try : self . task_id = str ( uuid . uuid4 ( ) ) task = dict ( task_id = self . task_id , args = args , kwargs = kwargs , ) self . broker . enqueue ( item = task , queue_name = self . task_name ) self . set_status ( "enqueued" ) echo ( f"Queued task: {self.task_id}" ) except Exception : raise RuntimeError ( f"Unable to publish task {self.task_id} to the broker." )
Have the broker enqueue this task, thereby delaying its
execution until some future time.
Have the broker enqueue this task thereby delaying its execution until some future time .
"""Have the broker enqueue this task, thereby delaying its
        execution until some future time.
        """
self