You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2022. It is now read-only.
$this->log("Reading value from INI file using the Ini plugin: $example_key");
74
-
75
-
$this->log('Executing this stuff every ' . $this->loop_interval . ' seconds. The next 2 messages will be coming from forked children that will exit once they log their message.');
83
+
// If it's currently running, this won't do anything. If it's idle, this will run it.
84
+
// All error and status info from the prior running will be reset
85
+
$this->ImpressionsHourly();
76
86
87
+
// Or you can do it manually
88
+
if ($this->ImpressionsHourly->state() <> Core_Worker::Core_Worker_Running)
89
+
$this->ImpressionsHourly(); // Or $this->ImpressionsHourly->execute();
90
+
91
+
// You can pass args directly into your callback or closure:
92
+
$this->ImpressionsHourly($arg1, $arg2);
93
+
94
+
95
+
96
+
$this->log('The current worker timeout is: ' . $this->ImpressionsHourly->timeout());
97
+
98
+
return;
99
+
100
+
// The Ini plugin implements the SPL ArrayAccess interface, so in your execute() method you can access the data like this:
0 commit comments