summaryrefslogtreecommitdiff
path: root/templates/job
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-08-15 14:14:32 +0200
committervarac <varacanero@zeromail.org>2016-08-15 14:14:32 +0200
commit21a91cbc9681a2f3f4615e7e467febf1c8f4f6e6 (patch)
treeef26732b75858c5fb17925bc861f1ee8b4c43bf2 /templates/job
parente56e58562bd1972df8e8d386b30175f6b12430ac (diff)
parented5463dce052852a5ace2d11a0265fff2244e60e (diff)
Merge tag 'v1.3.6' into dashing_io
Diffstat (limited to 'templates/job')
-rw-r--r--templates/job/%name%.rb4
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