|
|
@ -116,15 +116,13 @@ sub join_cluster |
|
|
|
|
|
|
|
|
|
|
|
if (not $is_active_member && $is_online) |
|
|
|
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'}, |
|
|
|
#$anvil->Database->insert_or_update_jobs({ |
|
|
|
job_description => "job_0337", |
|
|
|
# job_command => $anvil->data->{path}{exe}{'anvil-safe-start'}, |
|
|
|
job_name => "cgi-bin::set_membership::join", |
|
|
|
# job_description => "job_0337", |
|
|
|
job_progress => 0, |
|
|
|
# job_name => "cgi-bin::set_membership::join", |
|
|
|
job_title => "job_0336" |
|
|
|
# job_progress => 0, |
|
|
|
}); |
|
|
|
# job_title => "job_0336" |
|
|
|
|
|
|
|
#}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -145,15 +143,13 @@ sub leave_cluster |
|
|
|
|
|
|
|
|
|
|
|
if ($is_active_member) |
|
|
|
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'}, |
|
|
|
#$anvil->Database->insert_or_update_jobs({ |
|
|
|
job_description => "job_0339", |
|
|
|
# job_command => $anvil->data->{path}{exe}{'anvil-safe-stop'}, |
|
|
|
job_name => "cgi-bin::set_membership::leave", |
|
|
|
# job_description => "job_0339", |
|
|
|
job_progress => 0, |
|
|
|
# job_name => "cgi-bin::set_membership::leave", |
|
|
|
job_title => "job_0338" |
|
|
|
# job_progress => 0, |
|
|
|
}); |
|
|
|
# job_title => "job_0338" |
|
|
|
|
|
|
|
#}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|