{"id":55231,"date":"2022-01-31T06:34:52","date_gmt":"2022-01-31T06:34:52","guid":{"rendered":"https:\/\/www.icreativetechnologies.com\/?p=12499"},"modified":"2022-01-31T06:34:52","modified_gmt":"2022-01-31T06:34:52","slug":"how-to-add-shopware-6-scheduled-task","status":"publish","type":"post","link":"https:\/\/www.icreativetechnologies.com\/de\/how-to-add-shopware-6-scheduled-task\/","title":{"rendered":"How to Add Shopware 6 Scheduled Task?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"overview\">Overview<\/h2>\n\n\n\n<p>Quite often one might want to run any type of code on a regular basis, e.g. to clean up very old entries every once in a while, automatically. Usually known as &#8220;Cron Jobs&#8221;, Shopware 6 supports a scheduled task for this.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h2>\n\n\n\n<p>This guide is built upon our <a href=\"https:\/\/developer.shopware.com\/docs\/guides\/plugins\/plugins\/plugin-base-guide\" target=\"_blank\" rel=\"noreferrer noopener\">plugin base guide<\/a>, but that one is not mandatory. Knowing how the services.xml file in a plugin works is also helpful, which will be taught in our guides about <a href=\"https:\/\/developer.shopware.com\/docs\/guides\/plugins\/plugins\/plugin-fundamentals\/dependency-injection\" target=\"_blank\" rel=\"noreferrer noopener\">Dependency Injection<\/a> and <a href=\"https:\/\/developer.shopware.com\/docs\/guides\/plugins\/plugins\/plugin-fundamentals\/add-custom-service\" target=\"_blank\" rel=\"noreferrer noopener\">Creating a service<\/a>. It is shortly explained here as well though, so no worries!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"registering-scheduled-task-in-the-di-container\"><br>Registering scheduled tasks in the DI container<\/h2>\n\n\n\n<p>A scheduled task and its respective ScheduledTaskHandler are registered in a plugin&#8217;s services.xml. For it to be found by Shopware 6 automatically, you need to place the services.xml file in a Resources\/config\/ directory, relative to the location of your plugin&#8217;s base class. The path could look like this: <strong>&lt;plugin root&gt;\/src\/Resources\/config\/services.xml.<\/strong><\/p>\n\n\n\n<p>Here&#8217;s an example <strong>services.xml<\/strong> containing a new ScheduledTask as well as a new ScheduledTaskHandler:<\/p>\n\n\n\n<p><strong>&lt;plugin root&gt;\/src\/Resources\/config\/services.xml<\/strong><\/p>\n\n\n\n<div class=\"shopware-blog-code\" style=\"padding-left: 0px !important;\"><table style=\"margin-left: 0px !important;\"><tbody><tr><td style=\"border: none;\">&lt;?xml version=&#8221;1.0&#8243; ?&gt;<br><br>&lt;container xmlns=&#8221;https:\/\/symfony.com\/schema\/dic\/services&#8221;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlns:xsi=&#8221;https:\/\/www.w3.org\/2001\/XMLSchema-instance&#8221;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xsi:schemaLocation=&#8221;https:\/\/symfony.com\/schema\/dic\/services https:\/\/symfony.com\/schema\/dic\/services\/services-1.0.xsd&#8221;&gt;<br><br>&nbsp; &nbsp; &lt;services&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;service id=&#8221;Swag\\BasicExample\\Service\\ScheduledTask\\ExampleTask&#8221;&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tag name=&#8221;shopware.scheduled.task&#8221; \/&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;\/service&gt;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;service id=&#8221;Swag\\BasicExample\\Service\\ScheduledTask\\ExampleTaskHandler&#8221;&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;argument type=&#8221;service&#8221; id=&#8221;scheduled_task.repository&#8221; \/&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tag name=&#8221;messenger.message_handler&#8221; \/&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;\/service&gt;<br>&nbsp; &nbsp; &lt;\/services&gt;<br>&lt;\/container&gt;<br><\/td><\/tr><\/tbody><\/table><\/div>\n\n\n\n<p>Note the tags required for both the task and its respective handler, shopware.scheduled.task and messenger.message_handler. Your custom task will now be saved into the database once your <a href=\"https:\/\/www.icreativetechnologies.com\/shopware-6-plugin-installation\/\" target=\"_blank\" rel=\"noreferrer noopener\">Shopware 6 plugin<\/a> is activated.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"scheduledtask-and-its-handler\">ScheduledTask and its handler<\/h2>\n\n\n\n<p>As you might have noticed, the services.xml file tries to find both the task itself as well as the new task handler in a directory called Service\/ScheduledTask. This naming is up to you, Shopware 6 decided to use this name though.<\/p>\n\n\n\n<p>Here&#8217;s an example ScheduledTask:<\/p>\n\n\n\n<p><strong>&lt;plugin root&gt;\/src\/Service\/ScheduledTask\/ExampleTask.php<\/strong><\/p>\n\n\n\n<div class=\"shopware-blog-code\" style=\"padding-left: 0px !important;\"><table style=\"margin-left: 0px !important;\"><tbody><tr><td style=\"border: none;\">&lt;?php declare(strict_types=1);<br><br>namespace Swag\\BasicExample\\Service\\ScheduledTask;<br><br>use Shopware\\Core\\Framework\\MessageQueue\\ScheduledTask\\ScheduledTask;<br><br>class ExampleTask extends ScheduledTask<br>{<br>&nbsp; &nbsp; public static function getTaskName(): string<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; return &#8216;swag.example_task&#8217;;<br>&nbsp; &nbsp; }<br><br>&nbsp; &nbsp; public static function getDefaultInterval(): int<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; return 300; \/\/ 5 minutes<br>&nbsp; &nbsp; }<br>}<br><\/td><\/tr><\/tbody><\/table><\/div>\n\n\n\n<p>Your ExampleTask class has to extend from the <strong>Shopware\\Core\\Framework\\MessageQueue\\ScheduledTask\\ScheduledTask<\/strong> class, which will force you to implement two methods:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>getTaskName: The technical name of your task. Make sure to add a vendor prefix to your custom task, to prevent collisions with other plugin&#8217;s scheduled tasks. In this example this is swag.<\/li>\n\n\n\n<li>getDefaultInterval: The interval in seconds at which your scheduled task should be executed.<\/li>\n<\/ul>\n\n\n\n<p>And that&#8217;s it for the ExampleTask class.<\/p>\n\n\n\n<p>Following will be the respective task handler:<\/p>\n\n\n\n<p><strong>&lt;plugin root&gt;\/src\/Service\/ScheduledTask\/ExampleTaskHandler.php<\/strong><\/p>\n\n\n\n<div class=\"shopware-blog-code\" style=\"padding-left: 0px !important;\"><table style=\"margin-left: 0px !important;\"><tbody><tr><td style=\"border: none;\">&lt;?php declare(strict_types=1);<br><br>namespace Swag\\BasicExample\\Service\\ScheduledTask;<br><br>use Shopware\\Core\\Framework\\MessageQueue\\ScheduledTask\\ScheduledTaskHandler;<br><br>class ExampleTaskHandler extends ScheduledTaskHandler<br>{<br>&nbsp; &nbsp; public static function getHandledMessages(): iterable<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; return [ ExampleTask::class ];<br>&nbsp; &nbsp; }<br><br>&nbsp; &nbsp; public function run(): void<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; file_put_contents(&#8216;some\/where\/some\/file.md&#8217;, &#8216;example&#8217;);<br>&nbsp; &nbsp; }<br>}<\/td><\/tr><\/tbody><\/table><\/div>\n\n\n\n<p>The respective task handler, ExampleTaskHandler as defined previously in your services.xml, has to extend from the class<\/p>\n\n\n\n<p><strong>Shopware\\Core\\Framework\\MessageQueue\\ScheduledTask\\ScheduledTaskHandler.<\/strong> This also comes with two methods, that you need to implement first:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>getHandledMessages<\/strong>: An iterable, or an array, of the scheduled tasks, that this handler will take care of. In this case, this is only the ExampleTask class.<\/li>\n\n\n\n<li><strong>run<\/strong>: This method executes once your scheduled task completes. Do everything, that your task is suppose to do here. In this example, it will just create a new file.<\/li>\n<\/ul>\n\n\n\n<p>Now every five minutes, your task will be executed and it will print an output every time now.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"executing-the-scheduled-task\">Executing the scheduled task<\/h2>\n\n\n\n<p>Usually scheduled tasks are registered when installing or updating your plugin. If you don&#8217;t want to reinstall your plugin in order to register your scheduled task, you can also use the following command to achieve this:<\/p>\n\n\n\n<p><strong>bin\/console scheduled-task:register<\/strong><\/p>\n\n\n\n<p>In order to properly test your scheduled task, you first have to run the command bin\/console scheduled-task:run. This will start the ScheduledTaskRunner, which takes care of your scheduled tasks and their respective timings. It will dispatch a message to the message bus once your scheduled task&#8217;s interval is due.<\/p>\n\n\n\n<p>Now you still need to run the command bin\/console messenger:consume to actually execute the dispatched messages. Make sure, that the status of your scheduled task is set to scheduled in the scheduled_task table, otherwise it won&#8217;t be executed. This is not necessary when you&#8217;re using the admin worker.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Quite often one might want to run any type of code [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":18457,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[86],"tags":[],"class_list":["post-55231","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shopware"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Add Shopware 6 Scheduled Task? iCreative Technologies<\/title>\n<meta name=\"description\" content=\"How to Add Shopware 6 Scheduled Task blog by Shopware 6 Advanced Certified Developer to learn about Shopware services.\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Shopware 6 Scheduled Task? iCreative Technologies\" \/>\n<meta property=\"og:description\" content=\"How to Add Shopware 6 Scheduled Task blog by Shopware 6 Advanced Certified Developer to learn about Shopware services.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.icreativetechnologies.com\/de\/how-to-add-shopware-6-scheduled-task\/\" \/>\n<meta property=\"og:site_name\" content=\"iCreative Technologies\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-31T06:34:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2022\/01\/How-to-Add-Shopware-6-Scheduled-Task.png\" \/>\n\t<meta property=\"og:image:width\" content=\"730\" \/>\n\t<meta property=\"og:image:height\" content=\"365\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rajanik Bambhaniya - Shopware 6 Team Lead\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rajanik Bambhaniya - Shopware 6 Team Lead\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-add-shopware-6-scheduled-task\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-add-shopware-6-scheduled-task\\\/\"},\"author\":{\"name\":\"Rajanik Bambhaniya - Shopware 6 Team Lead\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#\\\/schema\\\/person\\\/66d9c33c2e2e219aafa7f95176cce629\"},\"headline\":\"How to Add Shopware 6 Scheduled Task?\",\"datePublished\":\"2022-01-31T06:34:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-add-shopware-6-scheduled-task\\\/\"},\"wordCount\":892,\"publisher\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-add-shopware-6-scheduled-task\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/How-to-Add-Shopware-6-Scheduled-Task.png\",\"articleSection\":[\"Shopware\"],\"inLanguage\":\"de\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-add-shopware-6-scheduled-task\\\/\",\"url\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-add-shopware-6-scheduled-task\\\/\",\"name\":\"How to Add Shopware 6 Scheduled Task? iCreative Technologies\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-add-shopware-6-scheduled-task\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-add-shopware-6-scheduled-task\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/How-to-Add-Shopware-6-Scheduled-Task.png\",\"datePublished\":\"2022-01-31T06:34:52+00:00\",\"description\":\"How to Add Shopware 6 Scheduled Task blog by Shopware 6 Advanced Certified Developer to learn about Shopware services.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-add-shopware-6-scheduled-task\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-add-shopware-6-scheduled-task\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-add-shopware-6-scheduled-task\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/How-to-Add-Shopware-6-Scheduled-Task.png\",\"contentUrl\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/How-to-Add-Shopware-6-Scheduled-Task.png\",\"width\":730,\"height\":365,\"caption\":\"How-to-Add-Shopware-6-Scheduled-Task\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-add-shopware-6-scheduled-task\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add Shopware 6 Scheduled Task?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#website\",\"url\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/\",\"name\":\"iCreative Technologies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#organization\",\"name\":\"iCreative Technologies\",\"url\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/logo-e1628229333795.png.png\",\"contentUrl\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/logo-e1628229333795.png.png\",\"width\":240,\"height\":66,\"caption\":\"iCreative Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#\\\/schema\\\/person\\\/66d9c33c2e2e219aafa7f95176cce629\",\"name\":\"Rajanik Bambhaniya - Shopware 6 Team Lead\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab8ee394ffda3b27429710e11341d6b1c3d8f608fc12db315b94e7adbb74c19a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab8ee394ffda3b27429710e11341d6b1c3d8f608fc12db315b94e7adbb74c19a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab8ee394ffda3b27429710e11341d6b1c3d8f608fc12db315b94e7adbb74c19a?s=96&d=mm&r=g\",\"caption\":\"Rajanik Bambhaniya - Shopware 6 Team Lead\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add Shopware 6 Scheduled Task? iCreative Technologies","description":"How to Add Shopware 6 Scheduled Task blog by Shopware 6 Advanced Certified Developer to learn about Shopware services.","robots":{"index":"noindex","follow":"follow"},"og_locale":"de_DE","og_type":"article","og_title":"How to Add Shopware 6 Scheduled Task? iCreative Technologies","og_description":"How to Add Shopware 6 Scheduled Task blog by Shopware 6 Advanced Certified Developer to learn about Shopware services.","og_url":"https:\/\/www.icreativetechnologies.com\/de\/how-to-add-shopware-6-scheduled-task\/","og_site_name":"iCreative Technologies","article_published_time":"2022-01-31T06:34:52+00:00","og_image":[{"width":730,"height":365,"url":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2022\/01\/How-to-Add-Shopware-6-Scheduled-Task.png","type":"image\/png"}],"author":"Rajanik Bambhaniya - Shopware 6 Team Lead","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Rajanik Bambhaniya - Shopware 6 Team Lead","Gesch\u00e4tzte Lesezeit":"3\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.icreativetechnologies.com\/how-to-add-shopware-6-scheduled-task\/#article","isPartOf":{"@id":"https:\/\/www.icreativetechnologies.com\/how-to-add-shopware-6-scheduled-task\/"},"author":{"name":"Rajanik Bambhaniya - Shopware 6 Team Lead","@id":"https:\/\/www.icreativetechnologies.com\/#\/schema\/person\/66d9c33c2e2e219aafa7f95176cce629"},"headline":"How to Add Shopware 6 Scheduled Task?","datePublished":"2022-01-31T06:34:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.icreativetechnologies.com\/how-to-add-shopware-6-scheduled-task\/"},"wordCount":892,"publisher":{"@id":"https:\/\/www.icreativetechnologies.com\/#organization"},"image":{"@id":"https:\/\/www.icreativetechnologies.com\/how-to-add-shopware-6-scheduled-task\/#primaryimage"},"thumbnailUrl":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2022\/01\/How-to-Add-Shopware-6-Scheduled-Task.png","articleSection":["Shopware"],"inLanguage":"de"},{"@type":"WebPage","@id":"https:\/\/www.icreativetechnologies.com\/how-to-add-shopware-6-scheduled-task\/","url":"https:\/\/www.icreativetechnologies.com\/how-to-add-shopware-6-scheduled-task\/","name":"How to Add Shopware 6 Scheduled Task? iCreative Technologies","isPartOf":{"@id":"https:\/\/www.icreativetechnologies.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.icreativetechnologies.com\/how-to-add-shopware-6-scheduled-task\/#primaryimage"},"image":{"@id":"https:\/\/www.icreativetechnologies.com\/how-to-add-shopware-6-scheduled-task\/#primaryimage"},"thumbnailUrl":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2022\/01\/How-to-Add-Shopware-6-Scheduled-Task.png","datePublished":"2022-01-31T06:34:52+00:00","description":"How to Add Shopware 6 Scheduled Task blog by Shopware 6 Advanced Certified Developer to learn about Shopware services.","breadcrumb":{"@id":"https:\/\/www.icreativetechnologies.com\/how-to-add-shopware-6-scheduled-task\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.icreativetechnologies.com\/how-to-add-shopware-6-scheduled-task\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.icreativetechnologies.com\/how-to-add-shopware-6-scheduled-task\/#primaryimage","url":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2022\/01\/How-to-Add-Shopware-6-Scheduled-Task.png","contentUrl":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2022\/01\/How-to-Add-Shopware-6-Scheduled-Task.png","width":730,"height":365,"caption":"How-to-Add-Shopware-6-Scheduled-Task"},{"@type":"BreadcrumbList","@id":"https:\/\/www.icreativetechnologies.com\/how-to-add-shopware-6-scheduled-task\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.icreativetechnologies.com\/"},{"@type":"ListItem","position":2,"name":"How to Add Shopware 6 Scheduled Task?"}]},{"@type":"WebSite","@id":"https:\/\/www.icreativetechnologies.com\/#website","url":"https:\/\/www.icreativetechnologies.com\/","name":"iCreative Technologies","description":"","publisher":{"@id":"https:\/\/www.icreativetechnologies.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.icreativetechnologies.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/www.icreativetechnologies.com\/#organization","name":"iCreative Technologies","url":"https:\/\/www.icreativetechnologies.com\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.icreativetechnologies.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/11\/logo-e1628229333795.png.png","contentUrl":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/11\/logo-e1628229333795.png.png","width":240,"height":66,"caption":"iCreative Technologies"},"image":{"@id":"https:\/\/www.icreativetechnologies.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.icreativetechnologies.com\/#\/schema\/person\/66d9c33c2e2e219aafa7f95176cce629","name":"Rajanik Bambhaniya - Shopware 6 Team Lead","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/secure.gravatar.com\/avatar\/ab8ee394ffda3b27429710e11341d6b1c3d8f608fc12db315b94e7adbb74c19a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ab8ee394ffda3b27429710e11341d6b1c3d8f608fc12db315b94e7adbb74c19a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ab8ee394ffda3b27429710e11341d6b1c3d8f608fc12db315b94e7adbb74c19a?s=96&d=mm&r=g","caption":"Rajanik Bambhaniya - Shopware 6 Team Lead"}}]}},"_links":{"self":[{"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/posts\/55231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/comments?post=55231"}],"version-history":[{"count":0,"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/posts\/55231\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/media\/18457"}],"wp:attachment":[{"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/media?parent=55231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/categories?post=55231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/tags?post=55231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}