diff --git a/docs/gitbook/python/introduction.md b/docs/gitbook/python/introduction.md index 3892ae6d72..b366727b90 100644 --- a/docs/gitbook/python/introduction.md +++ b/docs/gitbook/python/introduction.md @@ -46,11 +46,6 @@ async def process(job): # job.data will include the data added to the queue return doSomethingAsync(job) -worker = Worker("myQueue", process) - -# When no need to process more jobs we should close the worker -await worker.close() - async def main(): # Feel free to remove the connection parameter, if your redis runs on localhost worker = Worker("myQueue", process, {"connection": "rediss://:@:"})