Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding scheduled as an attribute for scheduled tasks

  • Loading branch information...
commit 8fb03a773fb941f8aa3d13739c82792bd789d9a4 1 parent d23591e
@sidazhang sidazhang authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  README.md
View
2  README.md
@@ -132,6 +132,7 @@ task.payload = {
"best_song_ever": "Call Me Maybe"
}
task.run_every = 300 # The task will run every 300 seconds (5 minutes)
+task.scheduled = True
response = worker.queue(task)
```
@@ -140,6 +141,7 @@ Likewise, if you'd like to run a task at a specific time, doing so is easy. Just
```python
task = Task(code_name="HelloFuture")
task.start_at = datetime.now() + timedelta(hours=1) # start in an hour
+task.scheduled = True
response = worker.queue(task)
```
Please sign in to comment.
Something went wrong with that request. Please try again.