purge_tasks removes all tasks from the queue. It allows workers to implement some critical functionality in cases where it identifies a situation that should prevent future tasks from being executed. The current worker name will be used unless task_name was specified.