{"id":23,"date":"2007-06-20T04:35:43","date_gmt":"2007-06-20T04:35:43","guid":{"rendered":"https:\/\/www.wapshere.com\/missmiis\/?p=23"},"modified":"2023-01-16T06:33:42","modified_gmt":"2023-01-16T06:33:42","slug":"the-art-of-scheduling","status":"publish","type":"post","link":"https:\/\/www.wapshere.com\/missmiis\/the-art-of-scheduling","title":{"rendered":"The Art of Scheduling"},"content":{"rendered":"<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt;\"><span lang=\"EN-GB\"><span style=\"font-family: Times New Roman;\">Scheduling is a big issue in MIIS and, when new to it, it seems rather odd that there is no native scheduling within the basic application. <\/span><\/span><\/p>\n<p><span lang=\"EN-GB\"><span style=\"font-family: Times New Roman;\">I expect most people quickly find out about MASequencer from the <\/span><a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=22788\"><span style=\"font-family: Times New Roman;\">MIIS Resource Toolkit<\/span><\/a><span style=\"font-family: Times New Roman;\">, and this isn&#8217;t a bad starting point. With MASequencer you can create series of MIIS tasks to run in a particular order, each with optional pre- and post-steps, which may include other external process, such as firing off a DTS package, or running another script. Once you have your sequences configured, use the Windows Scheduler to automate them.<\/span><\/span><\/p>\n<p><span lang=\"EN-GB\"><span style=\"font-family: Times New Roman;\">I think this approach would probably work fine for a simple MIIS system, but mine quickly outgrew it. The best practise, as far as I can see, is to ensure that only one MIIS job is running at a time &#8211; more than that and you risk SQL process blocking. So how closely should you schedule your MASequencer tasks? Too close and you risk process blocking; too far apart and your Delta imports will take even longer.<\/span><\/span><\/p>\n<p><span lang=\"EN-GB\"><span style=\"font-family: Times New Roman;\">With MASequencer I couldn&#8217;t change the tasks for different circumstances. What&#8217;s the point of running an Export if there is nothing waiting to go out? When the Export must be followed by a Full Import\/Sync (as is the case for certain MA types) you are slowing down your system and filling up your <\/span><a href=\"https:\/\/www.wapshere.com\/missmiis\/?p=22\"><span style=\"font-family: Times New Roman;\">Run History<\/span><\/a><span style=\"font-family: Times New Roman;\"> for no good reason.<\/span><\/span><\/p>\n<p><span lang=\"EN-GB\"><span style=\"font-family: Times New Roman;\">The answer to all these problems is to be found in the WMI Provider. For a good introduction read <a href=\"http:\/\/msdn.microsoft.com\/library\/en-us\/mmsdev\/mms\/about_the_wmi_provider.asp\" target=\"_blank\" rel=\"noopener noreferrer\">About the WMI Provider<\/a> in the MIIS Developer&#8217;s Reference.<\/span><\/span><\/p>\n<p><span lang=\"EN-GB\"><span style=\"font-family: Times New Roman;\">I ended up writing my own scheduling mechanism in VBScript: <a href=\"https:\/\/www.wapshere.com\/missmiis\/?p=26\">more on that to come<\/a>.<\/span><\/span><\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scheduling is a big issue in MIIS and, when new to it, it seems rather odd that there is no native scheduling within the basic application. I expect most people quickly find out about MASequencer from the MIIS Resource Toolkit, and this isn&#8217;t a bad starting point. With MASequencer you can create series of MIIS&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[34,28],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-ilm2007","category-miis2003"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pkp1o-n","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":3,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":3345,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/23\/revisions\/3345"}],"wp:attachment":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}