{"id":1911,"date":"2015-12-12T17:21:37","date_gmt":"2015-12-13T01:21:37","guid":{"rendered":"http:\/\/www.coretechnologies.com\/blog\/?p=1911"},"modified":"2015-12-12T17:21:37","modified_gmt":"2015-12-13T01:21:37","slug":"how-to-run-your-application-every-minute","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/how-to-run-your-application-every-minute\/","title":{"rendered":"How to Run your Application Every Minute with AlwaysUp"},"content":{"rendered":"<p>Do you want to run a script or application every minute? And have you decided that creating an AlwaysUp Windows Service will be <a href=\"\/products\/AlwaysUp\/ScheduledTaskVsAlwaysUp.html\">better than using the built-in Windows Task Scheduler<\/a>? If yes, here are the key settings to specify with AlwaysUp.<\/p>\n<h2><b>Wait One Minute Before Restarting<\/b><\/h2>\n<p>\nBy default, AlwaysUp will immediately restart your application whenever it exits. To have AlwaysUp &#8220;pause&#8221; for a minute before restarting, make the following changes on the <b>Restart<\/b> tab:\n<\/p>\n<ul>\n<li>\n<p>Select the <b>Not immediately<\/b> option<\/p>\n<\/li>\n<li>\n<p>Choose the <b>After<\/b> option<\/p>\n<\/li>\n<li>\n<p>Enter 1 minute in the controls to the right<\/p>\n<\/li>\n<\/ul>\n<div align=\"left\">\n<a href=\"\/blog\/images\/alwaysup-restart-application-every-minute.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"Restart your Application Every Minute\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/alwaysup-restart-application-every-minute.png\" width=\"425\" height=\"604\" border=\"0\" title=\"Restart your Application Every Minute (click to enlarge)\" alt=\"Restart your Application Every Minute\" \/><\/a>\n<\/div>\n<h2><b>Avoid Verbose Event Logging on each Run\/Restart<\/b><\/h2>\n<p>\nAlwaysUp is designed to record detailed information whenever your application exits and has to be restarted. This is often useful information for applications that should run continuously but the logging can become overwhelming when your application is stopping and restarting every minute!\n<\/p>\n<p>\nCheck the <b>Minimize event logging as the application stops &amp; starts<\/b> on the <b>Restart<\/b> tab to avoid extra chatter as your application\/script cycles each minute.\n<\/p>\n<div align=\"left\">\n<a href=\"\/blog\/images\/alwaysup-minimize-event-logging.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"Reduce Event Logging\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/alwaysup-minimize-event-logging.png\" width=\"425\" height=\"604\" border=\"0\" title=\"Reduce Event Logging (click to enlarge)\" alt=\"Reduce Event Logging\" \/><\/a>\n<\/div>\n<h2><b>Other Recommendations<\/b><\/h2>\n<p>\nIf you are interested in email notifications, be sure NOT to check the <b>Whenever the application stops and has to be restarted<\/b> box on the <b>Email<\/b> tab! If you do, expect to be inundated with emails as your application goes up and down every minute.<\/p>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/windows\/server-2016-test-drive\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Windows Server 2016 Test Drive: We&#039;re Fully Compatible\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/windows-server-2016-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Windows Server 2016 Test Drive: We&#039;re Fully Compatible<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/dropbox-software\/why-three-processes\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Why are there 3 copies of Dropbox Running on my PC?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/dropbox-question-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Why are there 3 copies of Dropbox Running on my PC?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/alwaysup-8-7-restart-application-when-pc-resumes\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Restart your Application when the PC Resumes\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/windows-sleep-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">AlwaysUp 8.7: Restart your Application when the PC Resumes<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>Do you want to run a script or application every minute? And have you decided that creating an AlwaysUp Windows Service will be better than using the built-in Windows Task Scheduler? If yes, here are the key settings to specify &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/how-to-run-your-application-every-minute\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2269,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[26,164],"class_list":["post-1911","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-alwaysup","tag-alwaysup-tag","tag-task-scheduler"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/1911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=1911"}],"version-history":[{"count":0,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/1911\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/2269"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=1911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=1911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=1911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}