UNPKG
occaecatidicta
Version:
latest (1.0.0)
1.0.0
github.com/MyleneMcClure/occaecatidicta.git
MyleneMcClure/occaecatidicta
occaecatidicta
/
packages
/
omelox-scheduler
/
test
/
test.js
13 lines
(11 loc)
•
237 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
schedule =
require
(
'omelox-scheduler'
);
var
cronJob =
function
(
) {
console
.
log
(
'doing %s'
,
Date
.
now
()) }
try
{ schedule.
scheduleJob
(
"0 5 14/2 * * *"
, cronJob, {
name
:
'cronJobExample'
}); }
catch
(e) {
console
.
log
(e.
stack
); }