fix(cgi-bin): release job dispatching logic in set_membership

main
Tsu-ba-me 4 years ago
parent 1cc0a9b087
commit 50c5098230
  1. 32
      cgi-bin/set_membership

@ -116,15 +116,13 @@ sub join_cluster
if (not $is_active_member && $is_online)
{
# TODO: Uncomment when testing against real hosts.
#
#$anvil->Database->insert_or_update_jobs({
# job_command => $anvil->data->{path}{exe}{'anvil-safe-start'},
# job_description => "job_0337",
# job_name => "cgi-bin::set_membership::join",
# job_progress => 0,
# job_title => "job_0336"
#});
$anvil->Database->insert_or_update_jobs({
job_command => $anvil->data->{path}{exe}{'anvil-safe-start'},
job_description => "job_0337",
job_name => "cgi-bin::set_membership::join",
job_progress => 0,
job_title => "job_0336"
});
}
}
@ -145,15 +143,13 @@ sub leave_cluster
if ($is_active_member)
{
# TODO: Uncomment when testing against real hosts.
#
#$anvil->Database->insert_or_update_jobs({
# job_command => $anvil->data->{path}{exe}{'anvil-safe-stop'},
# job_description => "job_0339",
# job_name => "cgi-bin::set_membership::leave",
# job_progress => 0,
# job_title => "job_0338"
#});
$anvil->Database->insert_or_update_jobs({
job_command => $anvil->data->{path}{exe}{'anvil-safe-stop'},
job_description => "job_0339",
job_name => "cgi-bin::set_membership::leave",
job_progress => 0,
job_title => "job_0338"
});
}
}

Loading…
Cancel
Save