Permalink
Browse files

adding scheduled as an attribute for scheduled tasks

  • Loading branch information...
1 parent d23591e commit 8fb03a773fb941f8aa3d13739c82792bd789d9a4 @sidazhang sidazhang committed Nov 22, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.md
View
@@ -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)
```

0 comments on commit 8fb03a7

Please sign in to comment.