{"id":421,"date":"2024-06-13T05:55:44","date_gmt":"2024-06-13T05:55:44","guid":{"rendered":"https:\/\/datadandies.nl\/?p=421"},"modified":"2024-06-13T05:55:44","modified_gmt":"2024-06-13T05:55:44","slug":"tasks-in-snowflake","status":"publish","type":"post","link":"https:\/\/datadandies.nl\/index.php\/2024\/06\/13\/tasks-in-snowflake\/","title":{"rendered":"Tasks in Snowflake"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Tasks are an excellent scheduling tool in Snowflake. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can use tasks for a lot of different purposes. Below are some examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Call a stored procedure. You could use this stored procedure perform full load of a table (truncate a table and insert new data from a stage, for example). <\/li>\n\n\n\n<li>Single SQL statements. These can be anything. An example would be using a merge statement to update your (SCDII) dimension. <\/li>\n\n\n\n<li>Etc.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The scheduling can be done using CRON (for example, run a task every hour, minimum schedule is one minute) or using a trigger. You could trigger a task to run after another task is done, thus creating a chain of tasks. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tasks are an excellent scheduling tool in Snowflake. You can use tasks for a lot of different purposes. Below are some examples: The scheduling can be done using CRON (for example, run a task every hour, minimum schedule is one minute) or using a trigger. You could trigger a task to run after another task&hellip;<\/p>\n<p class=\"more-link\"><a href=\"https:\/\/datadandies.nl\/index.php\/2024\/06\/13\/tasks-in-snowflake\/\" class=\"themebutton\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[40],"class_list":["post-421","post","type-post","status-publish","format-standard","hentry","category-blog","tag-snowflake"],"_links":{"self":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/comments?post=421"}],"version-history":[{"count":1,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/421\/revisions"}],"predecessor-version":[{"id":422,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/421\/revisions\/422"}],"wp:attachment":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/media?parent=421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/categories?post=421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/tags?post=421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}