title: How to pause or resume celery task?
body: <p>I am having a requirement in my project where customer can pause or resume process which are pending not the process one. I am using <strong>web socket</strong> to display celery task results, but in pause/resume i dont understand how to design the code. The one and only way came in my mind is to <strong>revoke</strong> the task in pause request while keeping data of <strong>revoked process</strong> in cache and used that cache later in resume api to initiate celery task again. By using this approach my web socket design flow get disturbed,  because i polled the task processing status via websocket and when there is no process i sent a <strong>finish true flag to close the connection</strong>. To know which task is in processing or pending i added a separate table for task mapping and flush this table when last task get executed. Please help me out to architect this design flawless, also please point me out if i missed something.</p>