<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by antoine on Medium]]></title>
        <description><![CDATA[Stories by antoine on Medium]]></description>
        <link>https://medium.com/@antoinereyt?source=rss-cbd31119ec04------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*2N6JpgBfQiRnI-rW-GnYvw.jpeg</url>
            <title>Stories by antoine on Medium</title>
            <link>https://medium.com/@antoinereyt?source=rss-cbd31119ec04------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 22:25:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@antoinereyt/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to replace crons with Zenaton]]></title>
            <link>https://medium.com/zenaton/how-to-replace-crons-with-zenaton-89cafabdcb12?source=rss-cbd31119ec04------2</link>
            <guid isPermaLink="false">https://medium.com/p/89cafabdcb12</guid>
            <category><![CDATA[cron]]></category>
            <category><![CDATA[scheduling]]></category>
            <category><![CDATA[releases]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[basics]]></category>
            <dc:creator><![CDATA[antoine]]></dc:creator>
            <pubDate>Tue, 17 Sep 2019 16:24:42 GMT</pubDate>
            <atom:updated>2019-09-18T13:29:07.215Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to replace Crons with Zenaton</h3><h3>Why we love Crons</h3><p>Cron Jobs are one of the basic building blocks of modern software. They are frequently one of the first tasks that we run outside of our software and an easy go-to when we need a to run a script or quickly put something into production.</p><ul><li>running a nightly script</li><li>moving data from one place to another on a regular schedule</li></ul><p>And, frequently we use crons as part of larger processes like checking on an API/database regularly to see if information has changed so that we can do something else with it.</p><p>Crons are mostly reliable and predictable, easy to implement and run on our existing infrastructure.</p><p>But, depending on what we are using them for, there are some drawbacks:</p><ul><li>Its hard to have a clear overview of all of our cron jobs that are running</li><li>It can be annoying to troubleshoot when an error or timeout happens</li><li>Out of the box alerting is limited so we need to build our own if we want something useful.</li><li>It can be hard to scale and have related tasks</li><li>We can run into a lot of problems when we have multi-step processes with related tasks and multiple external services.</li></ul><p>So we will walk you through the following scenarios and show how to replace crons by implementing Zenaton tasks (and even a workflow) for each of these scenarios:</p><ol><li>recurring tasks</li><li>asynchronous jobs — offloading lower priority tasks in the background</li><li>multi-step processes when you are using crons to check a database or API to see if something has changed.</li></ol><h3>Getting Started with Zenaton</h3><p>In order to implement the following scenarios, you would need to have a Zenaton account and have installed our agent so that the tasks can be sent to our workflow engine then executed on your servers and access to your tasks and workflows provided on your dashboard.</p><p>For our examples we have used Node.js but Zenaton also offers libraries in Ruby, PHP and Python.</p><h3>Scenario 1: recurring single tasks</h3><p>The most common cron usage is to run a nightly (or periodic) script to do something like:</p><ul><li>move data between internal services</li><li>pull in data from a third party reporting API to create reports</li><li>send a batch of emails or communications</li></ul><p>Normally, you would add an entry in the cron tab with the schedule and a path to a script. Then it would run on your infrastructure.</p><h3>Run a recurring task with Zenaton:</h3><p>We will create a <a href="https://zenaton.com/documentation/node/tasks#implementation">Zenaton single task</a> and schedule it using the schedule function that is compatible with <a href="https://zenaton.com/documentation/node/scheduling#overview">cron expressions</a>.</p><p>We are basically wrapping our existing script — called { Task } with the zenaton syntax.</p><pre>const { Task } = require(&quot;zenaton&quot;);<br><br>module.exports = Task(&quot;SalesReport&quot;, {<br><br>  init(params) {<br>    ...<br>  },<br><br>  async handle() {<br>    ... // your existing script<br>  }<br>});</pre><p>In a second script we will create the schedule for the task using the schedule function and cron expression daily at 4 AM .</p><pre>new SalesReport().schedule(&#39;0 4 * * * *&#39;)</pre><p>Now we can check the Schedules tab on our dashboard to see all of the Schedules we have created and if needed, we can pause, resume or delete/cancel them here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xu8Z-qOIaa1j6tJ23fT2sA.png" /></figure><h4>Adding in Automatic Retry:</h4><p>If this script hits an API that is intermittent or unreliable we might want to add in an automatic retry so that the task will retry if there is an error. This will allow the task to run instead of having to wait until the next recurrence on the next day.</p><p>Automatic retries can also be useful if there is a danger of rate limiting where we have maxed out and want to rerun the script a little later so that it can complete.</p><pre>const { Task } = require(&quot;zenaton&quot;);</pre><pre>module.exports = Task(&quot;SalesReport&quot;, {</pre><pre>  init(params) {<br>    ...<br>  },</pre><pre>  async handle() {<br>    ... // your existing script<br>  }</pre><pre>  onErrorRetryDelay(e) {<br>    // Retry at most 3 times, with an increasing delay between each try. <br>      const n = this.context.retryIndex;<br>      if (n &gt; 3) {<br>          return false;<br>      }</pre><pre>      return n * 60;<br>    }<br>});</pre><p>If the task still fails after being automatically retried 3 times, we will receive an error alert and will be able to view the stacktrace and details on the dashboard, investigate further and manually retry when we are ready.</p><h3>Scenario 2: Asynchronous jobs</h3><p>[note that you can also use a simple background jobs manager for this]</p><p>Another type of job that we commonly use crons for are asynchronous tasks (also known as background jobs) that off-load work from our main server and are not time sensitive.</p><p>These might include:</p><ul><li>resizing uploaded images</li><li>querying a database periodically to see if a task needs to be run</li><li>sending notification emails or alerts when something happens.</li></ul><p>Normally, you would add an entry in the cron tab to check the database periodically to see if there is data and then run the script. Then the script would run on your infrastructure.</p><h3>Running asynchronous jobs with Zenaton</h3><p>Instead with Zenaton we can dispatch a task when it is needed instead of saving information to the database.</p><p>So for example when a user uploads an image, instead of saving the information to a database, we would add the Zenaton code to dispatch the task which would be executed on our worker via the Zenaton agent.</p><p>Here is the code that we would write around our current script which we are calling MyAsncJob.</p><pre>const { Task } = require(&quot;zenaton&quot;);<br>    <br>module.exports = Task(&quot;MyAsyncJob&quot;, {</pre><pre>  init(params) {<br>	  ...<br>  },</pre><pre>  async handle() {<br>    ... // your existing script<br>  }</pre><pre>  onErrorRetryDelay(e) {<br>    // do not automatically retry for some kind of errors.<br>    if (e instanceof ImageLibError) {<br>	    return false;<br>    }</pre><pre>    // For other errors, retry at most 3 times, with an increasing delay between each try. <br>      const n = this.context.retryIndex;<br>      if (n &gt; 3) {<br>          return false;<br>      }</pre><pre>      return n * 60;<br>    }<br>});</pre><p>Then, we would dispatch our task with the following script.</p><pre>new MyAsyncJob({param1: &#39;param_val_1&#39;}).dispatch()</pre><p>A few of the benefits of using Zenaton here instead of running crons:</p><ul><li>we eliminate load on our database since we no longer need to check every 5 minutes</li><li>we can now distribute the load on our worker fleet: 1 worker to send high priority, low latency tasks like sending emails and a different worker to run the heavier tasks that are lower priority such as image resizing.</li><li>alerting — and of course, we will get an alert if the task failed so that we can retry or investigate.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CKcpTbsLYPKd1GBu.png" /></figure><h4>How to troubleshoot:</h4><p>For example, once in a while, an image resize task fails. By checking the stack trace on our dashboard, we might find that some image formats are not available. Once we have fixed and deployed a new version of our code, we can click retry on our failed task to resume the work.</p><h3>Scenario 3 : Multi-step workflow</h3><p>Some of the cron scripts that we run are part of a multi-step processes. Some steps may run or not depending on the outcome of previous steps or under certain conditions:</p><h3>How to implement scheduling, logic and conditions:</h3><p>Normally, you would add an entry in the crontab with the schedule and a path to a script. Then it would run on your infrastructure.</p><p>Instead with Zenaton, we can easily run this <a href="https://zenaton.com/documentation/node/workflow-basics/#implementation">sequence of steps as a workflow</a>.</p><p>A workflow describes a sequence of steps or tasks. The steps do not have to be sequential, they can also be triggered by events.</p><p>In order to write our sequence of steps, we will:</p><ol><li>write a task for each step</li><li>write a workflow to orchestrate those steps</li></ol><p>The example we would take here is an example of an ETL job. It could be all in one single task but you will see why it’s better to build as a workflow.</p><ol><li>pull data from many sources</li><li>crunch and aggregate some data</li><li>generate report</li><li>Notify people</li><li>Ask for human validation</li></ol><ul><li>We will fetch data from many sources: a product catalog form, a CRM, inventory update from an FTP, csv file, and finally a list of stores in our database.</li><li>Then for each store we process and aggregate the data and send a report with metrics about the updates.</li><li>We can send an alert or even stop the whole process if there are too many missing products.</li><li>Last, we need to get approval from someone in the organization which we will wait for and receive as an external event when it is approved.</li></ul><pre>const { Workflow, Wait, Parallel } = require(&quot;zenaton&quot;);<br>const GetCatalogFromCRMapi = require(&quot;../Tasks/GetCatalogFromCRMapi&quot;);<br>const DownloadInventoryFromEDIftp = require(&quot;../Tasks/DownloadInventoryFromEDIftp&quot;);<br>const GetStoresListFromDatabase = require(&quot;../Tasks/GetStoresListFromDatabase&quot;);<br>const UpdateStoreInventory = require(&quot;../Tasks/UpdateStoreInventory&quot;);<br>const WarnDeletionRateOnSlack = require(&quot;../Tasks/WarnDeletionRateOnSlack&quot;);<br>const SendStockUpdateReport = require(&quot;../Tasks/SendStockUpdateReport&quot;);<br>const SendApprovalRequest = require(&quot;../Tasks/SendApprovalRequest&quot;);<br>const CommitLastStockUpdate = require(&quot;../Tasks/CommitLastStockUpdate&quot;);<br>const RejectLastStockUpdate = require(&quot;../Tasks/RejectLastStockUpdate&quot;);</pre><pre>module.exports = Workflow(&quot;UpdateStocks&quot;, async function () {<br>  // (1) Fetch all the data you need in parallel<br>  const [catalog, inventory, stores] = await new Parallel(<br>    new GetCatalogFromCRMapi(),<br>    new DownloadInventoryFromEDIftp(),<br>    new GetStoresListFromDatabase()<br>  ).execute();</pre><pre>  // (2) foreach store<br>  stores.map(async store =&gt; {<br>    // (3) crunch data<br>    let updates = await new UpdateStoreInventory(store, catalog, inventory).execute();<br>    const deletion_rate = (updates.nb_deletion / catalog.length) * 100;</pre><pre>    // (4) this would trigger our alerting system and you will be instantly notified.<br>    if (deletion_rate &gt; 30) {<br>      throw new Error(&#39;Too much deletion, stock update stopped.&#39;);<br>    }</pre><pre>    // (5) Asynchronously warn the team via slack.<br>    // if there is more than 10% of deletion, warn the team via slack<br>    if (deletion_rate &gt; 10) {<br>      await new WarnDeletionRateOnSlack(store, deletion_rate).dispatch();<br>    }</pre><pre>    // (6) send the update report<br>    await new SendStockUpdateReport(store, updates).dispatch();<br>  });</pre><pre>  // (7) Notify a manager reveiw and approve or reject this update.<br>  await new SendApprovalRequest().dispatch();</pre><pre>  // (8) External human approval<br>  const moderation = await new Wait(&quot;ModerationEvent&quot;).hours(3).execute();<br>  if (moderation &amp;&amp; moderation.status == &#39;approved&#39;) {<br>    await new CommitLastStockUpdate().execute();<br>  } else {<br>    await new RejectLastStockUpdate().execute();<br>  }<br>});</pre><h4>Flowchart of the multi-step workflow:</h4><p>This flowchart helps to visualize the tasks and logic of the workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/0*y41FaM7xCSGSEZ3J.jpg" /></figure><h3>Benefits:</h3><p>All of the logic is in one place</p><p>Since we are using our native programming language we can incorporate loops, try/catch or whatever code structure that makes sense and we can also use all the libraries that we need.</p><p>Also the Zenaton SDK provides the flexibility to use</p><ul><li>parallel execution</li><li>synchronous or asynchronous execution</li><li>wait for specific events (instead of having to check to see if it has changed)</li></ul><p>Code overview:</p><p>(1) Here we take advantage of the parallel function, to fetch data from different sources in parallel.</p><p>(2) We can use loop and any other code structure</p><p>(3) We spin up a new task synchronously using the execute function. We choose synchronous because we need it&#39;s returned result later on</p><p>(4) We can use whatever logic we want, here we choose to throw an exception to trigger the alerting feature to be instantly notified.</p><p>(5) We can spin an asynchronous task using the dispatch function. We chose asynchronous this time because we don&#39;t need to wait for it&#39;s output or it&#39;s termination. We can continue doing other things in the meantime.</p><p>(6) We just spin up a new task to send a report to each store manager.</p><p>(7) We spin up an asynchronous task to ask the director of all stores, to approve or reject the new updates.</p><p>(8) We wait for a maximum of 3 hours for the ModerationEvent . If we receive this event and it’s approved then we can commit the update, in any other case we reject the update.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89cafabdcb12" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zenaton/how-to-replace-crons-with-zenaton-89cafabdcb12">How to replace crons with Zenaton</a> was originally published in <a href="https://medium.com/zenaton">Zenaton</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Grocery Store Shopper and Delivery Service]]></title>
            <link>https://medium.com/zenaton/grocery-store-shopper-and-delivery-service-ee9ff5e3a653?source=rss-cbd31119ec04------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee9ff5e3a653</guid>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[grocery-delivery-script]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[workflow]]></category>
            <dc:creator><![CDATA[antoine]]></dc:creator>
            <pubDate>Fri, 28 Jun 2019 04:35:12 GMT</pubDate>
            <atom:updated>2019-06-28T09:40:46.754Z</atom:updated>
            <content:encoded><![CDATA[<h3>Orchestrate a Grocery Order and Delivery Service with Zenaton (php)</h3><p>Let’s build a “Grocery delivery service” where a customer orders their groceries online and schedules a delivery time. Then a grocery store team member uses an app to collect the grocery items and then a courier service delivers them to the customer.</p><p>We will build this product with <strong>our</strong> business logic and combine several SaaS services to save us time. For our example, we will build several workflows communicating with each other using events.</p><blockquote>We will write the workflows using the Zenaton PHP library and all of the jobs will be dispatched through the Zenaton agent to the Zenaton workflow engine and then executed on your workers.</blockquote><p>For a better experience, the customer will pay only when they receive their items and as some of the items may be out of stock the customer will only be charged for items that are delivered.</p><p>The payment will be done in two steps:</p><ul><li><strong>authorize</strong>: When the customer places the order, we place the customer’s funds on hold for the total amount of all items ordered.</li><li><strong>capture</strong>: When the groceries are delivered, we charge the customer for only the items that were delivered.</li></ul><h4>User stories</h4><p><strong><em>Customer — </em></strong><em>Places an order and selects a delivery time, then fills in their credit card and finally clicks the “checkout” button.</em></p><p><strong><em>Shopper — </em></strong><em>Uses an app to accept a collection mission and then for each item, they report the quantity they purchased and report any items that are out of stock. When done, they hit the “collected” button.</em></p><p><strong>Courier — </strong><em>Uses an app to accept a delivery mission, goes to the grocery store, picks up the order, and delivers it to the customer’s house. When the delivery is done they click the “dropped off” button.</em></p><h4>So we have 3 workflows!</h4><p>The main workflow will be the “OrderWorkflow,” which, in addition, to running tasks, will also be responsible for triggering other workflows and coordinate all of the actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*_3prg4mlc9HcQlbBVPoRfA.png" /></figure><p>External events are sent by shopper and courier applications using http POST requests to some endpoints we will name “webhooks”.</p><p>Once external events are received, we prepare the corresponding internal event that we send to the <strong>main workflow</strong>: OrderWorkflow.</p><h4>Let’s put them together!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZLxeVNxkvufh0Gf7BssgMQ.png" /></figure><ol><li>When the customer ‘checks out’ on the website we<strong> </strong>use the<strong> Execute</strong> function <em>(which is synchronous)</em> and the <strong>“Authorize”</strong> task that locks the total amount of the order on the customer’s card.</li><li>We use the<strong> Dispatch </strong>function<strong> </strong><em>(which is Asynchronous)</em> to launch the “Shopper” and “Delivery” tasks, which launch the corresponding <strong>Workflows. [</strong>Workflows are launched by a task]</li><li>The “<strong>Broadcast new mission</strong>” task notifies the shoppers about a new collection mission.</li><li>When the shopper is finished picking up the items, they push the ‘collected’ button in the app and it triggers [via webhook] the <strong>“collected” </strong>external event. The shopper webhook forwards this event to the shopper workflow.</li><li>This triggers the shopper workflow to send an internal event <strong>“prepared”</strong> to the order workflow.</li><li>Meanwhile, the “<strong>Create course</strong>” in the <strong>“Delivery Workflow”</strong> task creates a delivery job via API.</li><li>When the courier has delivered the groceries, he pushes the “dropped” button in the app. The delivery webhook forwards this event to the delivery workflow.</li><li>The delivery workflow sends an <strong>internal event</strong> “delivered” to the order workflow.</li><li>And last…The “<strong>Capture</strong>” task, charges the amount of the products that have been delivered to the customer.</li></ol><p>Note how we have easily triggered tasks based on internal and external events as well as integrated multiple services all in a few lines of code:</p><p>Here is the main function of the OrderWorkflow:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f1a715ca6312eac80c9b77a861ee6675/href">https://medium.com/media/f1a715ca6312eac80c9b77a861ee6675/href</a></iframe><p>Most of the tasks are pretty simple, they use the SDKs of the SaaS products, so we won’t spend time on it today, you can fake it using the sleep function for now.</p><h4>Monitor the Workflow:</h4><p>We can see the chronology of events (and errors) on the Zenaton dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*iOhSq6beXGEIsDd78bnIZA.gif" /></figure><p>We can also click on each task to see the detailed information and properties — where you can store objects in your programming language.</p><p>You can add any properties you want to track to your tasks or workflows. For example you can track what happened in details for the delivery part of a given order, like the request/response of the API request, … or whatever is important to store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H83OH-PiZZa3dFe1CzIdnw.png" /></figure><p>Zenaton dashboard:</p><ul><li>See a realtime feed of all tasks and quickly identify any errors.</li><li>act as a logs of event</li><li>Easily visualize the sequences of events within the workflows</li><li>each step store a snapshot of the properties so useful for debugging</li></ul><h3>What can we build ?</h3><p>This is the basic foundation of a product, we can now add some workflows to make them more realistic/complex</p><p>For the shopper team, we can add some mechanism of alerting escalation to ensure a good delay of picking mission acceptance.</p><p>For the delivery workflow, <a href="https://medium.com/zenaton/implement-automatic-retries-using-zenaton-456a62d41f8e">we can react to the network errors</a> or challenge many delivery providers and select the cheapest one…</p><p>As we start growing, you can add some new workflows, to handle edge cases for the support team, …</p><p>There are an infinite amount of things we could do :)</p><h3>Keep Shipping…</h3><p>Did you notice that we spent more time on creating the logic and drawing diagrams rather than coding? Developers are already comfortable coding in their preferred language and using Zenaton we are giving them a whole lot more power.</p><p>Focus on <strong>your</strong> business and keep building things!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee9ff5e3a653" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zenaton/grocery-store-shopper-and-delivery-service-ee9ff5e3a653">Grocery Store Shopper and Delivery Service</a> was originally published in <a href="https://medium.com/zenaton">Zenaton</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[New feature] Agent Monitoring]]></title>
            <link>https://medium.com/zenaton/new-feature-agent-monitoring-cdd30e76ea3d?source=rss-cbd31119ec04------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdd30e76ea3d</guid>
            <category><![CDATA[releases]]></category>
            <category><![CDATA[zenaton]]></category>
            <category><![CDATA[server-monitoring]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[basics]]></category>
            <dc:creator><![CDATA[antoine]]></dc:creator>
            <pubDate>Wed, 22 May 2019 15:17:46 GMT</pubDate>
            <atom:updated>2019-05-27T14:25:46.118Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the biggest benefits of using Zenaton to run background jobs is the visibility that developers have into all of their processes on the <a href="https://medium.com/zenaton/new-feature-monitoring-tasks-with-zenaton-35f5a760fdf0">dashboard</a>. To take it to the next level, we are offering new level of visibility into your agents.</p><p>Now you can see a real time overview of your connected agents — to verify that the are installed and running as they should. If there is a problem, you can quickly troubleshoot and fix it.</p><p>So check it out. For a given environment (“dev” in our example below) the ‘Agents’ section on the dashboard displays the following information:</p><ul><li>A list of all installed agents with CPU and RAM usage</li><li>Real-time activity per agent (tasks running)</li><li>Tasks and workflows that are assigned to that agent</li><li><a href="https://zenaton.com/documentation/php/agents#parameters">Agent Settings</a> that are configured at deployment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Nekqe_eIuJanwKJXf-kvA.png" /></figure><p>Once you select an agent, you have access to more information that is split into several tabs.</p><h4>Activity tab</h4><p>Watch a real-time progression of tasks being executed on the agent for single tasks and tasks within workflows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z9Af_fYq78hSXcw_KNUvbQ.png" /></figure><h4>Settings tab</h4><p>View the agent <a href="https://zenaton.com/documentation/php/agents#parameters">parameters</a> that are <strong>currently in use</strong> by your agent which you set during deployment (mostly what you have set in the <strong>.env</strong> file)</p><ul><li>Shows which types of tasks agent is configured to execute.</li><li>Allows you to confirm that all settings are configured as expected</li></ul><p>It’s useful to check if the currently used parameters match your expectations, after a new agent configuration deployment for example.</p><p>Note: normally tasks are distributed evenly over all agents but the agent can be configured to run specific types of tasks to optimize performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qcrOanmq_vYVxOLFK-YYgw.png" /></figure><h4>Queues tab</h4><p>Zenaton dynamically deploys a queue for each new type of task or workflow encountered. Agents are dynamically configured to listen those queues — according to their own configuration.</p><p>So, the queue tab shows a list of all tasks or workflows that have been assigned to that agent and have run or started to run. This allows you to see the capability of the agent — what tasks or workflows are allowed to run.</p><p>It might be useful to check the advanced setup if you want the agent to “specialize” and use the handle_onlyand handle_exceptparameters.</p><p>For example, if you have a workflow for resizing images, and you want it to be run only by the second agent that has more CPU capacity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZstTy47L-nxHytt6tOdjQA.png" /></figure><h4>SDT OUT &amp; STD ERR</h4><p>While an agent is running tasks, the output is written to two files: zenaton.out for std-out and zenaton.err for std-err.</p><p>Those tabs respectively give you the paths of the zenaton.out and zenaton.err files on your agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N2hxs_L2b0yL06pXRPWlxw.png" /></figure><p>Agent monitoring is another step on the Zenaton roadmap towards full visibility into your background processes. We see it as another tool in the developer toolset to verify everything is running as it should or…if there is a problem…to quickly identify the origin and fix it.</p><p>Please share your feedback and requests below 👇🏻! And keep shipping!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdd30e76ea3d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zenaton/new-feature-agent-monitoring-cdd30e76ea3d">[New feature] Agent Monitoring</a> was originally published in <a href="https://medium.com/zenaton">Zenaton</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>