Skip to content

Commit c32a926

Browse files
committed
Pass the Qron instance in the perform context
1 parent 9721e0d commit c32a926

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/qron.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ def perform(now, cron, command)
158158

159159
def make_context(now, cron, command)
160160

161-
{ time: now, cron: cron, command: command }
161+
{ time: now, cron: cron, command: command,
162+
qron: self }
162163
end
163164

164165
def determine_sleep_time

0 commit comments

Comments
 (0)