Browse Source

Changed parameter order

pull/2404/head
Michael Vogel 6 years ago
parent
commit
65d6d45f8c
  1. 2
      boot.php
  2. 2
      include/cron.php
  3. 2
      include/cronhooks.php
  4. 2
      include/discover_poco.php
  5. 2
      include/onepoll.php
  6. 2
      include/pubsubpublish.php
  7. 2
      include/queue.php
  8. 2
      include/update_gcontact.php

2
boot.php

@ -1114,7 +1114,7 @@ class App {
return false;
}
function is_already_running($task, $taskname, $timeout = 540) {
function is_already_running($taskname, $task = "", $timeout = 540) {
$lockpath = get_lockpath();
if ($lockpath != '') {

2
include/cron.php

@ -43,7 +43,7 @@ function cron_run(&$argv, &$argc){
if (App::callstack() != "poller_run") {
if (App::maxload_reached())
return;
if (App::is_already_running('include/cron.php', 'cron', 540))
if (App::is_already_running('cron', 'include/cron.php', 540))
return;
}

2
include/cronhooks.php

@ -27,7 +27,7 @@ function cronhooks_run(&$argv, &$argc){
if (App::callstack() != "poller_run") {
if (App::maxload_reached())
return;
if (App::is_already_running('include/cronhooks.php', 'cronhooks', 1140))
if (App::is_already_running('cronhooks', 'include/cronhooks.php', 1140))
return;
}

2
include/discover_poco.php

@ -44,7 +44,7 @@ function discover_poco_run(&$argv, &$argc){
// Don't check this stuff if the function is called by the poller
if (App::callstack() != "poller_run")
if (App::is_already_running('include/discover_poco.php', 'discover_poco'.$mode.urlencode($search), 1140))
if (App::is_already_running('discover_poco'.$mode.urlencode($search), 'include/discover_poco.php', 1140))
return;
$a->set_baseurl(get_config('system','url'));

2
include/onepoll.php

@ -61,7 +61,7 @@ function onepoll_run(&$argv, &$argc){
// Don't check this stuff if the function is called by the poller
if (App::callstack() != "poller_run")
if (App::is_already_running('', 'onepoll'.$contact_id, 540))
if (App::is_already_running('onepoll'.$contact_id, '', 540))
return;
$d = datetime_convert();

2
include/pubsubpublish.php

@ -80,7 +80,7 @@ function pubsubpublish_run(&$argv, &$argc){
// Don't check this stuff if the function is called by the poller
if (App::callstack() != "poller_run")
if (App::is_already_running("include/pubsubpublish.php", 'pubsubpublish', 540))
if (App::is_already_running("pubsubpublish", "include/pubsubpublish.php", 540))
return;
$a->set_baseurl(get_config('system','url'));

2
include/queue.php

@ -29,7 +29,7 @@ function queue_run(&$argv, &$argc){
// Don't check this stuff if the function is called by the poller
if (App::callstack() != "poller_run")
if (App::is_already_running('include/queue.php', 'queue', 540))
if (App::is_already_running('queue', 'include/queue.php', 540))
return;
$a->set_baseurl(get_config('system','url'));

2
include/update_gcontact.php

@ -38,7 +38,7 @@ function update_gcontact_run(&$argv, &$argc){
// Don't check this stuff if the function is called by the poller
if (App::callstack() != "poller_run")
if (App::is_already_running('', 'update_gcontact'.$contact_id, 540))
if (App::is_already_running('update_gcontact'.$contact_id, '', 540))
return;
$r = q("SELECT * FROM `gcontact` WHERE `id` = %d", intval($contact_id));

Loading…
Cancel
Save