Skip to content

Commit

Permalink
GITBOOK-179: change request with no subject merged in GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
manast authored and gitbook-bot committed Aug 11, 2023
1 parent b6a48d3 commit 6ed5b7a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/gitbook/python/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -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://<user>:<password>@<host>:<port>"})
Expand Down

0 comments on commit 6ed5b7a

Please sign in to comment.