Skip to content

Commit 7871ac1

Browse files
authored
Merge branch 'master' into feature_duration
2 parents 0849a0b + 3ead7b0 commit 7871ac1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
resque-scheduler
22
================
33

4+
45
[![Dependency Status](https://gemnasium.com/badges/github.com/resque/resque-scheduler.svg)](https://gemnasium.com/github.com/resque/resque-scheduler)
56
[![Gem Version](https://badge.fury.io/rb/resque-scheduler.svg)](https://badge.fury.io/rb/resque-scheduler)
67
[![Build Status](https://travis-ci.org/resque/resque-scheduler.svg?branch=master)](https://travis-ci.org/resque/resque-scheduler)
@@ -290,6 +291,19 @@ clear_leaderboards_contributors:
290291
description: "This job resets the weekly leaderboard for contributions"
291292
```
292293
294+
If you would like to setup a job that is executed manually you can configure like this in your YAML file.
295+
296+
```yaml
297+
ImportOrdersManual:
298+
description: 'Import Amazon Orders Manual'
299+
custom_job_class: 'AmazonMws::ImportOrdersJob'
300+
never: "* * * * *"
301+
queue: high
302+
description: "This is a manual job for importing orders."
303+
args:
304+
days_in_arrears: 7
305+
```
306+
293307
The queue value is optional, but if left unspecified resque-scheduler will
294308
attempt to get the queue from the job class, which means it needs to be
295309
defined. If you're getting "uninitialized constant" errors, you probably

0 commit comments

Comments
 (0)