{"id":227,"date":"2019-11-01T13:41:31","date_gmt":"2019-11-01T13:41:31","guid":{"rendered":"https:\/\/sdf-docs.mansystems.com\/docs\/acr-rules\/performance\/frequent-scheduled-events\/"},"modified":"2020-07-08T14:35:30","modified_gmt":"2020-07-08T14:35:30","slug":"frequentscheduledevent","status":"publish","type":"docs","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/performance\/frequentscheduledevent","title":{"rendered":"Scheduled events should be executed with reasonable delay"},"content":{"rendered":"\n<p>A scheduled event can only start if the previously scheduled event is completed. If the corresponding microflow is taking a long time to complete and\/or the repeat time is very low e.g. 1 second then this can lead to a situation where new scheduled events are added faster than they are processed.<\/p>\n\n\n\n<p>Ultimately this will lead to memory problems. Therefore it is important to use a reasonable delay between scheduled events. Alternatively, measure the running-time of a scheduled event and adjust the delay accordingly.<\/p>\n\n\n\n<p><strong>Noncompliant solution:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"593\" src=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-66.png\" alt=\"\" class=\"wp-image-1018\" srcset=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-66.png 786w, https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-66-480x362.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 786px, 100vw\" \/><\/figure>\n\n\n\n<p><strong>Compliant solution:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"591\" src=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-67.png\" alt=\"\" class=\"wp-image-1019\" srcset=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-67.png 780w, https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-67-480x364.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 780px, 100vw\" \/><\/figure>\n","protected":false},"featured_media":0,"parent":95,"menu_order":13,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-227","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/227"}],"collection":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=227"}],"version-history":[{"count":4,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/227\/revisions"}],"predecessor-version":[{"id":1020,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/227\/revisions\/1020"}],"up":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/95"}],"next":[{"title":"Entity should have a maximum of N indices","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/performance\/indexamount","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/233"}],"prev":[{"title":"Checking for empty on associations should be done without retrieving","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/performance\/retrievethencheck","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1286"}],"wp:attachment":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=227"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}