Skip to content
Browse files

Merge pull request #30 from sidazhang/master

Bugfix in documentation: adding scheduled as an attribute for scheduled tasks
  • Loading branch information...
2 parents d23591e + 8fb03a7 commit 4c784c60eaafc1395959ef0ac3d70323c9edcbd5 @edsrzf edsrzf committed
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)
```

0 comments on commit 4c784c6

Please sign in to comment.
Something went wrong with that request. Please try again.