Skip to content

Commit

Permalink
Fixes issue rq#934 - Documented Queue.delete (rq#951)
Browse files Browse the repository at this point in the history
* Fixes issue rq#934 - Documented Queue.delete

Fixes issue rq#934 - Code review fix

* Minor doc update
  • Loading branch information
theodesp authored and selwin committed Apr 25, 2018
1 parent 8b57842 commit bc8d4a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,13 @@ print len(q)
queued_job_ids = q.job_ids # Gets a list of job IDs from the queue
queued_jobs = q.jobs # Gets a list of enqueued job instances
job = q.fetch_job('my_id') # Returns job having ID "my_id"

# Deleting the queue
q.delete(delete_jobs=True) # Passing in `True` will remove all jobs in the queue
# queue is unusable now unless re-instantiated
{% endhighlight %}


### On the Design

With RQ, you don't have to set up any queues upfront, and you don't have to
Expand Down

0 comments on commit bc8d4a0

Please sign in to comment.