new:dev:support run the jobs manually

This commit is contained in:
chenqiyu
2018-05-07 18:40:41 +08:00
parent a84171ac11
commit bb7f57e903
5 changed files with 26 additions and 0 deletions

View File

@@ -55,6 +55,15 @@ function startJob(_id){
});
}
function runJob(_id){
messageBox("<p> Do you want to run this Job? </p>", "Confirm run job", null, null, function(){
$.post(routes.run, {_id: _id}, function(){
location.reload();
});
});
}
function setCrontab(){
messageBox("<p> Do you want to set the crontab file? </p>", "Confirm crontab setup", null, null, function(){
$.get(routes.crontab, { "env_vars": $("#env_vars").val() }, function(){