Now checking if nextrun is equal to time() as well
This commit is contained in:
parent
b9e8c2f361
commit
d946dba54e
|
@ -53,7 +53,7 @@ if (file_exists("cache/get-services.trigger")) {
|
|||
}
|
||||
}
|
||||
|
||||
$stmt = $db->query('SELECT jobID, url, host, delay, nextrun, expected FROM jobs WHERE nextrun < ' . time());
|
||||
$stmt = $db->query('SELECT jobID, url, host, delay, nextrun, expected FROM jobs WHERE nextrun <= ' . time());
|
||||
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
$client = new \GuzzleHttp\Client();
|
||||
|
||||
|
|
Loading…
Reference in New Issue