diff options
Diffstat (limited to 'templates/job/%name%.rb')
-rw-r--r-- | templates/job/%name%.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/job/%name%.rb b/templates/job/%name%.rb new file mode 100644 index 0000000..76f221a --- /dev/null +++ b/templates/job/%name%.rb @@ -0,0 +1,4 @@ +# :first_in sets how long it takes before the job is first run. In this case, it is run immediately +SCHEDULER.every '1m', :first_in => 0 do |job| + send_event('widget_id', { }) +end
\ No newline at end of file |