<?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[Runnerty - Medium]]></title>
        <description><![CDATA[Runnerty is low code technology that allows integrating and automate online &amp; offline applications, systems infrastructure and services with third parties in a simple, fast and reliable way. - Medium]]></description>
        <link>https://medium.com/runnerty?source=rss----81cdf9cf7bc9---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Runnerty - Medium</title>
            <link>https://medium.com/runnerty?source=rss----81cdf9cf7bc9---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 16:10:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/runnerty" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Runnerty and Cypress to check that your app is online]]></title>
            <link>https://medium.com/runnerty/runnerty-and-cypress-to-check-that-your-app-is-online-193c1f7712e7?source=rss----81cdf9cf7bc9---4</link>
            <guid isPermaLink="false">https://medium.com/p/193c1f7712e7</guid>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[cypress]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[runnerty]]></category>
            <category><![CDATA[workflow]]></category>
            <dc:creator><![CDATA[Álvaro A. Quirós]]></dc:creator>
            <pubDate>Wed, 21 Apr 2021 09:26:35 GMT</pubDate>
            <atom:updated>2021-04-21T09:26:34.998Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Paradise beach in Thailand" src="https://cdn-images-1.medium.com/max/1024/1*SF0IAng_wN80-QHjng0xZQ.jpeg" /></figure><h3>What are we going to read in this article?</h3><p>Let’s see how we can develop some tests with Cypress and plan them with Runnerty to check the status of our app or web.</p><p><a href="https://dev.to/runnerty/runnerty-y-cypress-para-comprobar-que-tu-app-esta-online-4pl8">Do you want to read it in Spanish?</a></p><p>For those who don’t know it, <a href="https://runnerty.io/">Runnerty</a>, is a “low code” technology that allows to integrate and automate online &amp; offline applications, systems infrastructure and services with third parties in a simple, fast and secure way, creating workflows and offering a new way to develop.</p><figure><img alt="Cypress diagram" src="https://cdn-images-1.medium.com/max/1024/1*_C5ERSdqbBYiGXSya59cCw.png" /></figure><p>If you want to know a little more about why you should try it, here you can read <a href="https://dev.to/runnerty/por-que-usar-runnerty-3ce1">this post 👀</a>.</p><h3>Show me the code!</h3><p>In Cypress website we can find very useful documentation and case studies, I leave a <a href="https://docs.cypress.io/guides/getting-started/writing-your-first-test">link</a> for you to take a look, very interesting.</p><p>We are going to run it directly from a Runnerty project, to get it ready and scheduled to launch every X hours against our production website 😎.</p><h3>Setup</h3><p>First of all, let’s create the Runnerty project</p><blockquote>npx runnerty-cli new runnerty-cypress-test</blockquote><p>🔎 Note: Before continuing, I always link my Runnerty projects to the platform, to manage it from there.</p><p>Just go to <a href="https://app.runnerty.io/">Runnerty Platform</a>, create the project and copy the API key generated in our <strong>config.json</strong> file, it’s very simple (and free, of course 😉).</p><p>Once the project is created, we use the Runnerty CLI to add Cypress to it:</p><p>From within our project we execute:</p><blockquote>npx runnerty-cli add @runnerty/executor-cypress</blockquote><p>This will have prepared our project to start using Cypress and a sample Runnerty Workflow with the sample processes ready to test.</p><p>It will also have created a script in our <strong>package.json</strong> to run Cypress.</p><p>Our tests are in the default folder that Cypress creates for its tests. Inside we will have the 2 tests created:</p><blockquote>./cypress/integration/sample-a.spec.js</blockquote><blockquote>./cypress/integration/sample-a.spec.js</blockquote><p>These tests, as you can see, are extremely simple, even if we are not very used to them, we will be able to know what they do:</p><figure><img alt="Cypress test code" src="https://cdn-images-1.medium.com/max/1024/1*O6ckY2qy7gU_aruanrQc4g.png" /></figure><p>The “only” thing these tests do is connect to <a href="https://app.runnerty.io/">app.runnerty.io</a>, a variable that, by the way, is defined in the <strong>cypress.json</strong> file and in the first block checks the page has an ‘h1’ with the text “Log in” and a second case that after typing in the username and password field intentionally fails with a</p><blockquote>expect(true)to.equal(false);</blockquote><p>We can run our Cypress tests directly with the command:</p><blockquote>npm run cypress:open</blockquote><p>We will see 2 example tests from the Cypress console</p><figure><img alt="Cypress console" src="https://cdn-images-1.medium.com/max/868/1*MT7bIw2Dcaa0HqWVfpfZ3g.png" /></figure><p>When we launch them from this console, we will be able to see their execution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oot8QXmpP8K8vAbpNR51TA.gif" /></figure><h3>Scheduling tests with Runnerty</h3><p>🔎 Note: For those who are not familiar with the Runnerty syntax, I recommend <a href="https://dev.to/runnerty/como-empezar-a-usar-runnerty-3ki0">this article</a>.</p><p>We are “simply” going to take advantage of these tests and put them in Runnerty’s planning. The Runnerty CLI has already created an example plan <strong>plan_executor-cypress_sample.json</strong> with 2 processes to execute the 2 tests, we only have to copy and paste them in our <strong>plan.json</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IwPbNaPz1XJ3i3wujyC_jg.png" /></figure><p>We are also going to change the scheduler to run every hour, no need to run all tests every minute 😉.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oU2gMjIqg5HHQAs3ZrWkAw.png" /></figure><p>🤔 Remember to connect the project to <a href="https://app.runnerty.io/">Runnerty Platform</a> so you can run the chain from there and see what happened.</p><p>All we have to do now is to start Runnerty 🎉</p><blockquote>npm start</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*IfWpJwtpTHsh11tP7cq7UA.png" /></figure><p>Now we can go to <a href="https://app.runnerty.io/">Runnerty Platform</a>, select our project, go to the chain list and force our tests to be launched (so we don’t wait for the next hour for them to run).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QlB8mFlX7GpliaFwuvUAUA.png" /></figure><p>And we will see how our tests are executed every hour or every time we launch them manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vNCDPxy5x6oPgcFpOVA0jw.png" /></figure><p>If we go into detail, we will see that the first test has passed correctly but the second has failed (intentionally).</p><h3>TLDR;</h3><p>With Runnerty we can automate our Cypress tests to have control at all times that our platform has no problem.</p><p>I leave this repo that you download it and with a <strong>npm start</strong> you see that every 5 min you have runnerty.io running 🚀.</p><p><a href="https://github.com/alo/runnerty-cypress">https://github.com/alo/runnerty-cypress</a></p><h3>What ‘s next?</h3><p>I encourage you to take a look at it and if you find it interesting you can support us on <a href="https://github.com/runnerty/runnerty">Github</a> ⭐️ or send us a message on <a href="https://twitter.com/runnerty_io">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=193c1f7712e7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/runnerty/runnerty-and-cypress-to-check-that-your-app-is-online-193c1f7712e7">Runnerty and Cypress to check that your app is online</a> was originally published in <a href="https://medium.com/runnerty">Runnerty</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Version 3 of Runnerty Now Available]]></title>
            <link>https://medium.com/runnerty/version-3-of-runnerty-now-available-2e16cb5cab76?source=rss----81cdf9cf7bc9---4</link>
            <guid isPermaLink="false">https://medium.com/p/2e16cb5cab76</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[process-management]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[workflow-automation]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Álvaro A. Quirós]]></dc:creator>
            <pubDate>Tue, 16 Mar 2021 08:24:24 GMT</pubDate>
            <atom:updated>2021-03-16T09:43:35.877Z</atom:updated>
            <content:encoded><![CDATA[<h3>Version 3 of Runnerty Now Available 🚀</h3><p>After 1 year of development, we launch to the world a new version of Runnerty, version 3. A year of development is a lot and even more if it is in the hands of our CTO,🧑‍✈ <a href="https://twitter.com/ccarmona">Carlos Carmona</a>.</p><p><a href="https://dev.to/runnerty/runnerty-v3-2lf7">Pincha aquí si prefieres leerlo en español.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sOwgI2mucJvvWhIdog2TMA.jpeg" /></figure><p>We had several lines of development open, we wanted to refactor some features completely, make that code more readable in some points, more modular in others and optimize it, we wanted to bring out new features, but, above all, we wanted to make it more “<strong>low code</strong>”, easier for us, the developers. Without forgetting that Runnerty manages millions of daily processes, we don’t want ~~too many~~ breaking changes!</p><p>💡 You can start <a href="https://runnerty.io/">using Runnerty now</a> and start developing your workflows and having your system monitored and under control.</p><h3><strong>Refactor and optimization</strong></h3><p>We still had some Async / Await pending… test and update our dependencies, and in passing give a review to the code in general, to see that everything is nice.</p><p>We have developed those missing tests and took the opportunity to improve the performance in some points that we had identified (and in some that we didn’t ☺️).</p><p>By the way we have introduced <a href="https://synk.io/">Synk</a> as a tool for code security monitoring, we had been testing it for a while and we found it useful for the project.</p><h3><strong>New features</strong></h3><h4><strong>Interpreter</strong></h4><p>Runnerty is provided with an interpreter that allows to execute functions on any data involved in the flow, operations with dates, mathematical, cryptographic or even evaluation operations that are often used in the definition of complex dependencies. In this new version, we have optimized our interpreter and we have added a couple of new functions:</p><ul><li>UUID (v1–5)</li><li>HTML ESCAPE/UNESCAPE</li></ul><h4>Calendars</h4><p>We have improved the complete calendar system, which allows our workflows to take into account holidays, for example. We have improved the access, reading and parsing of ICS calendars and added URL access to them.</p><h4>The output data</h4><p>The treatment of the output data of a process is something very interesting when defining our workflows, as it allows you to prepare the input for the next process. In Runnerty V3, we now have the possibility to filter and sort the output of a process directly in its schedule 🤩</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3RVplhulpWGYvB8G" /></figure><h4><strong>Namespaces</strong></h4><p>Namespaces to contextualize our chains. Now we can make Runnerty launch only the workflows of a certain Namespace or the other way around, excluding one or several Namespaces. Also in Runnerty Platform you will have filtering functionalities by Namespace to display only the ones you are interested in.</p><blockquote>runnerty — namespace SALES,DWH</blockquote><blockquote>runnerty — exclude_namespace EXPERIMENTAL</blockquote><h4><strong>Metadata</strong></h4><p>Metadata to specify relevant chain information. Very interesting for the maintenance of any platform, if a chain fails, who do I call, can I re-launch it, is it a priority?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kKiHWwPI_Kj2usub" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A1FWPltNtuGaQfVg" /></figure><h3><strong>Improvements for development with Runnerty</strong></h3><p>But here’s where we’re really going to notice the difference, no doubt about it.</p><h4><strong>Improvements in documentation</strong></h4><p>Everything starts with documentation. First we changed the tool we used to document, we needed to be more agile in this sense, now we use <a href="https://docusaurus.io/">Docusaurus</a>, and we love it. Now we have it easier and we have added documentation versioning.</p><p>We have tried to make it clearer and more precise. In many cases we have introduced examples and we are working hard on the blog so that there are more and more use cases.</p><h4><strong>Clearer (and prettier) error and warning messages</strong></h4><p>Our cli will warn us if there is a newer version of Runnerty and if there is any incompatibility with the NodeJS version. We have also improved some messages to be more descriptive, for example, if we try to force the execution of a chain that does not exist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5hLY7P3SA1yZ3FMF" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gBubUCSqtwADBykB" /></figure><h4>Scaffolds 🪄</h4><p>And, what for me is a “<strong>game changer</strong>”, the introduction of scaffolds. Now, through the Runnerty CLI, you will be able to add modules to your project.</p><p>Remember that you can install runnerty-cli or use it directly with npx</p><ol><li>Install Runnerty &amp; Runnerty CLI</li></ol><blockquote>npm i -g runnerty runnerty-cli</blockquote><p>2. Create your Runnerty project</p><blockquote>npx runnerty-cli new my-awesome-project</blockquote><p>3. Inside the project folder …</p><blockquote>npx runnerty-cli add @runnerty/executor-cypress</blockquote><p>And our project will have the module installed in our package.json, with a configuration example in our config.json and a sample workflow to include it in our workflows 🦄</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Aa3zu04Iw-c3N_j5" /></figure><p>With Runnerty, its CLI and this module, we can have our website or platform monitored in a matter of a few minutes 🚀, I owe you that post demonstrating it!</p><p>If you are interested and want to know how to start using Runnerty, <a href="https://medium.com/runnerty/how-to-start-using-runnerty-37a31b3862da">here is an article we wrote a few days ago</a>.</p><p>You can give your feedback in <a href="https://twitter.com/runnerty_io">twitter</a> or <a href="https://github.com/runnerty/runnerty">github</a> ⭐️</p><p>#Enjoy</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e16cb5cab76" width="1" height="1" alt=""><hr><p><a href="https://medium.com/runnerty/version-3-of-runnerty-now-available-2e16cb5cab76">Version 3 of Runnerty Now Available</a> was originally published in <a href="https://medium.com/runnerty">Runnerty</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to start using Runnerty?]]></title>
            <link>https://medium.com/runnerty/how-to-start-using-runnerty-37a31b3862da?source=rss----81cdf9cf7bc9---4</link>
            <guid isPermaLink="false">https://medium.com/p/37a31b3862da</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[workflow-automation]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[process-management]]></category>
            <dc:creator><![CDATA[Álvaro A. Quirós]]></dc:creator>
            <pubDate>Thu, 11 Feb 2021 20:24:25 GMT</pubDate>
            <atom:updated>2021-02-11T20:24:25.659Z</atom:updated>
            <content:encoded><![CDATA[<p>Runnerty is a “low code” technology that allows to integrate and automate online &amp; offline applications, systems infrastructure and services with third parties in a simple, fast and secure way, creating workflows and offering a new way to develop.</p><figure><img alt="The beautiful Aguadulce" src="https://cdn-images-1.medium.com/max/1024/1*hAdFDMJfVfCFInJo3ku3yA.jpeg" /></figure><p><a href="https://dev.to/runnerty/como-empezar-a-usar-runnerty-3ki0">Do you want to read it in Spanish ?</a></p><p>If you want to know a little more about why you should try it, here is this <a href="https://medium.com/runnerty/why-use-runnerty-49c63d634597">post</a> 👀.</p><p>In this article we are going to see some basic concepts of Runnerty, how to create our first project and how to connect with Runnerty Platform.</p><ol><li>Some basics</li><li>Creating our first Runnerty project</li><li>Project structure</li><li>Connecting with Runnerty Platform 🚀</li><li>Launch our first process</li><li>Extra ball: Add a second process and visualize it on the platform.</li></ol><h3>1. Basic concepts 📕</h3><h4>Chains or workflows</h4><p>They are a grouping of processes that make sense in a certain context. This can be as diverse as you can create a chain to check that your website is online, create a chain to collect orders from your e-commerce and communicate them to the corresponding supplier or create ETL chains for your Data Warehouse. Runnerty provides many features that will make defining these workflows super agile and fully scalable, define dependencies between processes, pass values from one to another or even evaluate them to decide which “way to go” are just some of its possibilities.</p><h4>Executors</h4><p>Each of the processes of our chain will execute a specific action through these modules. We can use very generic executors, such as Shell, which allows you to execute any command through the console, or other very specific ones that allow us to perform very specific actions, such as communicating with a delivery company like MRW or Fedex.</p><h4>Notifiers</h4><p>As their name suggests, they will keep us informed at all times, when a chain or a specific process starts or finishes, if it is being reattempted(creo que reattempted es mejor que retried, pero no se, lo que quiero decir es reintentado ) or if it has failed. We can send an email, a sms or message via Telegram or connect it directly to our incident system.</p><h4>Triggers</h4><p>These modules are in charge of launching our workflows. It can be something planned, it can be when a file is received in an ftp …</p><p>Note 🔎: Executors, notifiers and triggers are modules, you can develop your own very easily so you can take Runnerty’s potential wherever you want.</p><h3>2. I’m not telling you, I’m showing you 👩💻👨💻</h3><p>The only thing we need before starting is to have the LTS version of NodeJS (V 14+) installed. If you don’t have it, you can download it <a href="https://nodejs.org/es/download/">here</a>.</p><h3>Runnerty-cli</h3><p>Runnerty has a command line tool that will make things much easier. Just run the following command in a terminal and you’re done.</p><pre>npx runnerty-cli new my-awesome-project</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F7nQQjF6_jIdTAfB7Sf1JQ.png" /></figure><p>🎉 We already have our first Runnerty project!</p><h3>3. Structure of our project 🔎</h3><p>It is a very simple project, we are going to focus on the 2 basic Runnerty files:</p><ul><li>config.json</li><li>plan.json</li></ul><h4>Config</h4><p>In the config.json we are going to have 3 sections where we will be adding the configurations of our 3 types of modules (triggers, notifiers and executors). The ones you see in the example are just an identifier and a name to use in our workflows, in case the module needs some more data, this is where we would indicate it, for example an email account, a username and password, etc.</p><pre>{<br>  &quot;triggers&quot;: [<br>    {<br>      &quot;id&quot;: &quot;schedule_default&quot;,<br>      &quot;type&quot;: &quot;@runnerty-trigger-schedule&quot;<br>    }<br>  ],<br>  &quot;executors&quot;: [<br>    {<br>      &quot;id&quot;: &quot;shell_default&quot;,<br>      &quot;type&quot;: &quot;@runnerty-executor-shell&quot;<br>    }<br>  ],<br>  &quot;notifiers&quot;: [<br>    {<br>      &quot;id&quot;: &quot;console_default&quot;,<br>      &quot;type&quot;: &quot;@runnerty-notifier-console&quot;<br>    }<br>  ]<br>}</pre><h4>Plan</h4><p>In the plan is where we define our workflows 😎.</p><p>We can see several sections:</p><pre>{<br>  &quot;chains&quot;: [<br>    {<br>      &quot;id&quot;: &quot;CHAIN_ONE&quot;,<br>      &quot;name&quot;: &quot;Chain one sample&quot;,<br>      &quot;triggers&quot;: [<br>        ...<br>      ],<br>      &quot;notifications&quot;: {<br>        ...<br>      },<br>      &quot;defaults_processes&quot;: {<br>        ...<br>      },<br>      &quot;processes&quot;: [<br>        ...<br>      ]<br>    }<br>  ]<br>}</pre><h3>Chains</h3><p>Inside each chain, besides a name and an identification, we will have 4 sections</p><p>1.<strong>Triggers</strong>, what triggers our workflow, in this case we have used the scheduler plugin and we have configured the process to run every minute.</p><pre>...<br>&quot;triggers&quot;: [<br>  {<br>    &quot;id&quot;: &quot;schedule_default&quot;,<br>    &quot;schedule_interval&quot;: &quot;*/1 * * * *&quot;<br>  }<br>],<br>...</pre><p>Note 🔎: This module uses standard cron nomenclature.</p><p>2. <strong>Notifiers</strong>, The notifications of our workflow, in this case we see that it is going to warn us when the chain starts, when it finishes and if it fails.</p><pre>...<br>&quot;notifications&quot;: {<br>  &quot;on_start&quot;: [<br>    {<br>      &quot;id&quot;: &quot;console_default&quot;,<br>      &quot;message&quot;: &quot;@GETDATE(&#39;YYYY-MM-DD HH:mm:ss&#39;) START OF THE CHAIN: @GV(CHAIN_ID)&quot;<br>    }<br>  ],<br>  &quot;on_end&quot;: [<br>    {<br>      &quot;id&quot;: &quot;console_default&quot;,<br>      &quot;message&quot;: &quot;@GETDATE(&#39;YYYY-MM-DD HH:mm:ss&#39;) END OF THE CHAIN: @GV(CHAIN_ID)&quot;<br>    }<br>  ],<br>  &quot;on_fail&quot;: [<br>    {<br>      &quot;id&quot;: &quot;console_default&quot;,<br>      &quot;message&quot;: &quot;@GETDATE(&#39;YYYY-MM-DD HH:mm:ss&#39;) FAIL OF THE CHAIN: @GV(CHAIN_ID)&quot;,<br>      &quot;mode&quot;: &quot;error&quot;<br>    }<br>  ]<br>},<br>...</pre><p>Note 🔎: We can already see some of Runnerty’s own functions, like <strong>GETDATE()</strong> that will return the date with the mask that we define or <strong>GV</strong> (get value) that in this case will return the string identifier. There are many more, here is a link to the documentation.</p><p>3. <strong>Defaults</strong> (optional). Many times it is very useful to define default values for all processes, that is why we have this section. All processes by default will have these notifications configured, although we can always overwrite them within the process itself.</p><pre>&quot;defaults_processes&quot;: {<br>  &quot;notifications&quot;: {<br>    &quot;on_start&quot;: [<br>      {<br>        &quot;id&quot;: &quot;console_default&quot;,<br>        &quot;message&quot;: &quot;@GETDATE(&#39;YYYY-MM-DD HH:mm:ss&#39;) START: PROCESS @GV(PROCESS_ID)&quot;<br>      }<br>    ],<br>    &quot;on_fail&quot;: [<br>      {<br>        &quot;id&quot;: &quot;console_default&quot;,<br>        &quot;message&quot;: &quot;@GETDATE(&#39;YYYY-MM-DD HH:mm:ss&#39;) ERROR: PROCESS @GV(PROCESS_ID): @GV(PROCESS_EXEC_ERR_OUTPUT)&quot;,<br>        &quot;mode&quot;: &quot;error&quot;<br>      }<br>    ],<br>    &quot;on_end&quot;: [<br>      {<br>        &quot;id&quot;: &quot;console_default&quot;,<br>        &quot;message&quot;: &quot;@GETDATE(&#39;YYYY-MM-DD HH:mm:ss&#39;) END: PROCESS @GV(PROCESS_ID)&quot;<br>      }<br>    ]<br>  }<br>},</pre><p>4. <strong>Processes</strong></p><p>The most common properties that we can see inside a process (besides its name and identifier), are the following properties:</p><ul><li>exec</li><li>output</li></ul><pre>...<br>&quot;processes&quot;: [<br>  {<br>    &quot;id&quot;: &quot;PROCESS_ONE&quot;,<br>    &quot;name&quot;: &quot;Process One&quot;,<br>    &quot;exec&quot;: {<br>      ...<br>    },<br>    &quot;output&quot;: [<br>      ...<br>    ]<br>  },<br>  ...<br>]<br>...</pre><p>4.1. The exec property where we are going to indicate which executor of our config.json we want to use and where we are going to indicate the necessary values for it to be executed. In this case, as we are going to use the Shell executor, we only need to indicate the command we want it to execute.</p><pre>...<br>{<br>  &quot;id&quot;: &quot;PROCESS_ONE&quot;,<br>  &quot;name&quot;: &quot;Process One&quot;,<br>  &quot;exec&quot;: {<br>    &quot;id&quot;: &quot;shell_default&quot;,<br>    &quot;command&quot;: &quot;echo Runnerty: hello world!&quot;<br>  },<br>  &quot;output&quot;: [<br>    ...<br>  ]<br>},<br>...</pre><p>4.2. The output property, where we treat the output of the process. In this example we are going to write in a log file the result of the execution.</p><pre>{<br>  &quot;id&quot;: &quot;PROCESS_ONE&quot;,<br>  &quot;name&quot;: &quot;Process One&quot;,<br>  &quot;exec&quot;: {<br>    ...<br>  },<br>  &quot;output&quot;: [<br>    {<br>      &quot;file_name&quot;: &quot;./@GETVALUE(PROCESS_ID).log&quot;,<br>      &quot;write&quot;: [<br>        &quot;EXECUTION @GV(PROCESS_ID) - AT @GETDATE(&#39;YYYY-MM-DD HH:mm:ss&#39;)\n @GV(PROCESS_EXEC_ERR_OUTPUT) @GV(PROCESS_EXEC_MSG_OUTPUT)&quot;<br>      ],<br>      &quot;concat&quot;: true,<br>      &quot;maxsize&quot;: &quot;10mb&quot;<br>    }<br>  ]<br>},</pre><p>Note 🔎: It is interesting to know that you can define the maximum size of your log file and avoid space problems.</p><p>4.3. As we commented before, we can also configure specific notifications for this process, for now we are going to leave this property empty because we have the default notifications configured.</p><h3>4. Connecting to Runnerty Platform 🚀</h3><p>Let’s connect our project with Runnerty Platform to make it easier to visualize and get the most out of Runnerty. This step is optional, but I recommend it, you will enjoy Runnerty much more 😊🔥.</p><ol><li>We log in to the platform</li></ol><p>2. Create the project, selecting the New project option.</p><p>3. We simply add the generated API Key to our config.json file</p><pre>{<br>  &quot;general&quot;: {<br>    &quot;runnerty.io&quot;: {<br>      &quot;apikey&quot;: &quot;NUESTRO_TOKEN&quot;<br>    }<br>  },<br>  &quot;triggers&quot;: [...],<br>  &quot;executors&quot;: [...],<br>  &quot;notifiers&quot;: [...]<br>}</pre><p>So simple 😊!</p><h3>5. Start our chain!</h3><p>Now we just need to run our chain and see what happens. As simple as executing the following command:</p><pre>npm start</pre><p>If everything is correct, why wouldn’t it be, we will see the following message in our console:</p><pre>&gt; runnerty</pre><pre>info: RUNNERTY v3.0.0 RUNNING - TIME...: Thu Jan 14 2021 10:29:23 GMT+0100 (hora estándar de Europa central)<br>info: Successful access to runnerty.io (websockets)</pre><p>In this base project, we have configured that every minute our workflow is executed, which in this case only shows a message by console, and we will be able to see how the values have been replaced.</p><pre>info: 2021-01-14 10:30:00 START OF THE CHAIN: CHAIN_ONE<br>info: 2021-01-14 10:30:00 START: PROCESS PROCESS_ONE<br>info: 2021-01-14 10:30:00 END: PROCESS PROCESS_ONE</pre><p>But, let’s see it on the platform, no more endless logs…</p><figure><img alt="Runnerty platform executions" src="https://cdn-images-1.medium.com/max/880/1*-FwnNsQcXi_mlg0FOG6Z_Q.png" /></figure><p>We will see each of the executions of our workflow. We have many interesting options that we will explain on another occasion, such as relaunching our workflow from the platform at any time or see the details of the execution.</p><h3>6. Extra ball: Add a second process and visualize it in the platform.</h3><p>We create a second process (copy the first one and change the id and name and add the property depends_process to indicate that it depends on the previous process. It’s that easy…</p><pre>...<br>&quot;processes&quot;: [<br>  {<br>    &quot;id&quot;: &quot;PROCESS_ONE&quot;,<br>    &quot;name&quot;: &quot;Process One&quot;,<br>    &quot;exec&quot;: {...},<br>    &quot;output&quot;: [...]<br>  },<br>  {<br>    &quot;id&quot;: &quot;PROCESS_TWO&quot;,<br>    &quot;name&quot;: &quot;Process 2&quot;,<br>    &quot;depends_process&quot;: [&quot;PROCESS_ONE&quot;],<br>    &quot;exec&quot;: {<br>      &quot;id&quot;: &quot;shell_default&quot;,<br>      &quot;command&quot;: &quot;echo Runnerty: Process 2 depends on process 1!&quot;<br>    },<br>    &quot;output&quot;: [...]<br>  }<br>]<br>...</pre><p>🎉 We have created our first workflow with dependency between processes!</p><p>Now, if you take a look at the visualization of the string in the platform, you will see that dependency</p><figure><img alt="Workflow representation in Runnerty platform" src="https://cdn-images-1.medium.com/max/880/1*A-0D4y8QX30c7AEDZRYN8Q.png" /></figure><p>Obviously, we are not squeezing the potential of Runnerty in this very basic example, but we can make workflows as complex as you are able to design.</p><figure><img alt="Runnerty platform complete workflow representation" src="https://cdn-images-1.medium.com/max/880/1*PbBUN0ocsCqyuXDJ89i2rQ.png" /></figure><p>Start delegating processes of your ecosystem to Runnerty and make it scalable and secure 🔥.</p><p>I encourage you to take a look and let me know what you think.</p><p>You can give your feedback in <a href="https://twitter.com/runnerty_io">twitter</a> or <a href="https://github.com/runnerty/runnerty">github</a> ⭐️</p><p>#enjoy</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37a31b3862da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/runnerty/how-to-start-using-runnerty-37a31b3862da">How to start using Runnerty?</a> was originally published in <a href="https://medium.com/runnerty">Runnerty</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why use Runnerty?]]></title>
            <link>https://medium.com/runnerty/why-use-runnerty-49c63d634597?source=rss----81cdf9cf7bc9---4</link>
            <guid isPermaLink="false">https://medium.com/p/49c63d634597</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[task-management]]></category>
            <dc:creator><![CDATA[Álvaro A. Quirós]]></dc:creator>
            <pubDate>Thu, 31 Dec 2020 12:36:37 GMT</pubDate>
            <atom:updated>2021-02-18T17:43:10.436Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article I am going to explain how it works and why it can helps you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rh6LtGPsBfzFtbVQn23GdQ.jpeg" /></figure><p><a href="https://www.linkedin.com/pulse/por-qu%25C3%25A9-usar-runnerty-%25C3%25A1lvaro-a-quir%25C3%25B3s-l%25C3%25B3pez">Do you want to read it in Spanish?</a></p><p>Every day new technological projects are born, more complex and interconnected with more services and third party applications. Business models that must provide service to more users every day in a constant struggle to improve their value. This means a high cost (time, resources and money) in its development and maintenance.</p><p>We are no longer talking about web applications, online sales platforms or mobile applications, we are talking about <strong>software ecosystems</strong>.</p><p>Runnerty is a technology that proposes a new way of developing, creating a layer of abstraction in which to integrate and automate a software ecosystem, delegating to it much of your business logic, avoiding problems of scalability, security and maintenance, making future developments much more evolved, saving time and resources.</p><h3>So, what is Runnerty?</h3><p>Runnerty is low code technology that allows integrating and automate online &amp; offline applications, systems infrastructure and services with third parties in a simple, fast and reliable way, creating workflows and offering a new way to develop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*GO89oadSyLowjVZSMxb6Vg.png" /></figure><p>No matter the size of your application or platform and even the state of development in which it is, surely Runnerty can make things easier for you, give robustness to your system and give you some agility when it comes to evolve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x95e-52he9DBqiQZNgqt6Q.png" /></figure><p>You can use Runnerty in many ways, from automating development processes, such as CD/CI tasks, to high level tasks such as direct communication with customers or delivery companies.</p><h3>Some of its main features</h3><h4>Management of complex dependencies.</h4><p>Runnerty not only controls when a process ends so that the next one begins, but it can make complex evaluations, wait for several processes to end before executing one or another, do it when they end well, do it when they end badly, create all kinds of links based on the result of the process, etc.</p><h4>Notification system</h4><p>Runnerty keeps you informed wherever / whenever any event occurs in your workflows in a simple way and through notifications by email, sms, telegram, slack… to any platform you choose, of course, from “<a href="https://app.runnerty.io/">Runnerty Platform</a>”, giving you the freedom you need.</p><h4>Retry system.</h4><p>You can define how many times you want to retry a process before it fails and how much time you want to spend between retries.</p><h4>Log management.</h4><p>To avoid server maintenance, Runnerty takes care of managing the maximum size of the logs and the location. We solve space management problems by logging processes that you can’t even imagine.</p><h3>And if things get serious…</h3><p>No matter the size of the project and its complexity, there are no limits. When the job gets serious Runnerty has advanced features that will make managing millions of processes a routine</p><h4>Process queue system.</h4><p>You can define different queues and have the processes run in the order they are received.</p><h4>Priority system between processes.</h4><p>When you have many processes is normal that there are several that are ready to run at the same time, with Runnerty you can set priorities to run the ones you consider most important first.</p><h3>And something else</h3><p>In addition to all this, Runnerty offers a cloud service, which allows to visualize the integration and global automation of a software ecosystem in a graphical, intuitive and customized way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iB9tyg8CjO64vNVSN22IVA.jpeg" /></figure><p>Do you want to know more? Check it out <a href="https://runnerty.io/">runnerty.io</a>!</p><h3>And now what?</h3><p>If you want to know how to start using Runnerty, here’s a <a href="https://medium.com/runnerty/how-to-start-using-runnerty-37a31b3862da">link to this tutorial</a>.</p><p>I encourage you to take a look and let me know what you think.</p><p>You can give your feedback in <a href="https://twitter.com/runnerty_io">twitter</a> or <a href="https://github.com/runnerty/runnerty">github</a> ⭐️</p><p>#enjoy</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49c63d634597" width="1" height="1" alt=""><hr><p><a href="https://medium.com/runnerty/why-use-runnerty-49c63d634597">Why use Runnerty?</a> was originally published in <a href="https://medium.com/runnerty">Runnerty</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firebase Realtime Database + Runnerty]]></title>
            <link>https://medium.com/runnerty/firebase-realtime-database-runnerty-eee3c9dec6aa?source=rss----81cdf9cf7bc9---4</link>
            <guid isPermaLink="false">https://medium.com/p/eee3c9dec6aa</guid>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[process]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[pipeline]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[José Antonio Ruiz Santiago]]></dc:creator>
            <pubDate>Sat, 27 Oct 2018 17:19:10 GMT</pubDate>
            <atom:updated>2018-10-27T17:17:56.195Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you use <strong>Firebase Real-time Database</strong> in your app? Would you like to send and email when a new user is registered in the database?</p><p>Thanks to Runnerty now it’s very easy to trigger processes or workflows to do whatever you need depending off the actions that may occur in your database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*L4hooh0k0XPNPuwAKThzfg@2x.jpeg" /></figure><p><strong>Runnerty</strong> have launched a new trigger plugin to listen if there is a new record or change in your databases documents.</p><p>In this example I’m going to show how to configure and use it when a new user is registered in the app. If you don’t know how Runnerty works, I recommend you to read this article: <a href="https://link.medium.com/wNjNjl5eeR">https://link.medium.com/wNjNjl5eeR</a></p><h3>Cloning and installing.</h3><p>clone the repo and install dependenies:</p><pre>git clone <a href="https://github.com/Jhonsensf/runnerty-firebase-demo.git">https://github.com/Jhonsensf/runnerty-firebase-demo.git</a><br>cd runnerty-firebase-demo<br>npm i</pre><p>If we open the plan.json file, we will see that this chain only has a trigger and a process configured. The trigger will listen to new records in the “users” document of our database:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*bEqNtRn-bts9bKQXXSgOSg.png" /></figure><p>The process will send a welcome email to the new user recorded in the database:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*25i1SSxN3HxfWmDWCKYN9Q.png" /></figure><h3>Configuring the Firebase Trigger:</h3><p>To get our firebase trigger working we have to add our database account data in the config.json file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U1a_F6C0CGHelT-Byw-sIw.png" /></figure><p>To get the service account file and the database URL we have to select our project in the firebase console then go to project settings &gt; service accounts, and finally click on “generate new private key”. It will download a .json file with the key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z6ymwtkqz5oPTVkx4-8ABg.png" /></figure><p>In this view there is also the URL of our database. Now we have to add this data to the firebase trigger configuration in the config.json file of the project.</p><h3><strong>Configuring the mail executor:</strong></h3><p>To use the mail executor we just have to add our smtp account data to the executor configuration data in the config.json file of the project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TIvW4cL0lCANm17_k-jIBw.png" /></figure><p>Note that the email executor is using a template system to send the email. In the project there is a template as example, but you can change it and use your own tamplates.</p><h3><strong>How it works:</strong></h3><p>Once we have everything configured we are ready to execute our workflow just with this command:</p><pre>runnerty</pre><p>Now, runnerty is being executed listening for new users in the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A4WePUR84YpEln3tUYofbw.png" /></figure><p>Once a new user is recorded in the database, the firebase trigger will fire the chain al will share all the record data with the rest of the chain, so you can use this data y the next processes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*A-cfi42P-m1yHGU_av8eyg.gif" /><figcaption>New record inserted in the database</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J3H9md_u2uQQX9O-9jOV9w.png" /><figcaption>All the @gv(var) will be replaced by it’s value thanks to the runnerty interpreter.</figcaption></figure><p>And finally, te email is sent by Runnerty replacing the values:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fTCCoh1rEKEk3gtBGNP03Q.png" /></figure><p>That’s all!!!. Runnerty has a lot of different triggers, executors and notifiers that allows you to design awesome workflows connecting it with different servicies and technologies. Stay tuned for new articles and tutorials!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eee3c9dec6aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/runnerty/firebase-realtime-database-runnerty-eee3c9dec6aa">Firebase Realtime Database + Runnerty</a> was originally published in <a href="https://medium.com/runnerty">Runnerty</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Twitter bot with Runnerty in 5 min]]></title>
            <link>https://medium.com/runnerty/build-a-twitter-bot-with-runnerty-in-less-than-5-minutes-2ea45fe87ca1?source=rss----81cdf9cf7bc9---4</link>
            <guid isPermaLink="false">https://medium.com/p/2ea45fe87ca1</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[process]]></category>
            <dc:creator><![CDATA[José Antonio Ruiz Santiago]]></dc:creator>
            <pubDate>Wed, 07 Mar 2018 17:13:25 GMT</pubDate>
            <atom:updated>2018-03-07T17:42:38.123Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DBmICuc7vTNe7u7YWilL9Q.jpeg" /></figure><p>Runnerty is an open source process orchestrator which allows us to build workflows establishing real dependencies between the processes.</p><p>In this tutorial we are going to build a twitter bot using Runnerty in less than 5 minutes. This bot is going to listen to the new followers of a twitter account and send a direct message to them.</p><p>I am assuming that you know how Runnerty works basically. If you do not know yet, I really encourage you to read its basics: <a href="https://medium.com/runnerty/introducing-runnerty-1284c3e5d1b1">https://medium.com/runnerty/introducing-runnerty-1284c3e5d1b1</a> .</p><h3>Installing Runnerty and cloning the quick start repo.</h3><p>First thing we have to do is to install runnerty.</p><pre>npm i -g runnerty</pre><p>Next step is to download the Runnerty quick start repo. This repo contains a sample runnerty chain with just one proccess:</p><pre># Clone this repository<br>git clone https://github.com/runnerty/runnerty-quick-start<br><br># Go into the repository<br>cd runnerty-quick-start<br><br># Install dependencies<br>npm install</pre><p>Now we are going to work in this project adapting it to our purpose.</p><h3>Installing and configuring the runnerty twitter trigger:</h3><p>To start working with the trigger we are going to install it:</p><pre>npm i @runnerty/trigger-twitter</pre><p>Now, we only have to configure the trigger in our config.json. If we look at the sample configuration instructions, we only have to write our API key data. This will be our config.json:</p><pre>&quot;triggers&quot;: [<br>  {<br>    &quot;id&quot;:&quot;twitter_default&quot;,<br>    &quot;type&quot;:&quot;@runnerty-trigger-twitter&quot;,<br>    &quot;consumerKey&quot;:&quot;MyTwitterConsumerKey&quot;,<br>    &quot;consumerSecret&quot;:&quot;MyTwitterconsumerSecret&quot;,<br>    &quot;accessToken&quot;:&quot;MyTwitteraccessToken&quot;,<br>    &quot;accessTokenSecret&quot;:&quot;MyTwitteraccessTokenSecret&quot;<br>  }<br>]</pre><p>To get a twitter API key go to the website: <a href="https://apps.twitter.com/">https://apps.twitter.com</a> and log-in with the account and click on “create new app”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BX_3Mbx3Q_fGiPpNUr4ylg.png" /></figure><p>Then, we have to fill the data and click on “create your Twitter application”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vhHS3-UCyWxJnwnR6zSATA.png" /></figure><p>Finally, we can go to the “Keys and Access Tokens” of our app Settings and we will find there our API key access data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xjxl15wKzFbzudGn2uhNsQ.png" /></figure><p>Once we have our twitter credentials in the runnerty twitter trigger confurarion, we are ready to use it in our chain. We move to the plan.json file and we will see that it is currently using the scheduler trigger. We have to chage it by our twitter trigger. The trigger section of the plan have to look like this:</p><pre>{<br>  &quot;chains&quot;:[<br>    {<br>      &quot;id&quot;:&quot;STREAM_NEW_FOLLOWERS&quot;,<br>      &quot;name&quot;:&quot;Stream for new followers and send a DM to them&quot;,<br>      &quot;triggers&quot;:[<br>        {<br>          &quot;id&quot;:&quot;twitter_dafault&quot;,<br>          &quot;command&quot;:&quot;follow&quot;<br>        }<br>      ],<br>      &quot;processes&quot;:[<br>      ]<br>    }<br>  ]<br>}</pre><p>As we can see, I have added the command property, this property tell the triggers to fire the chain when someone start to follow the twitter account. I also have changed the chain id and name for a logic name.</p><h3>Installing and configuring the twitter executor:</h3><p>Once we have our trigger configured we can start to plan the process. This process is going to send direct message to the new follower. So, we are going to need the Runnerty twitter executor:</p><pre>npm i -g @runnerty/executor-twitter</pre><p>As we did with the trigger, we have to configure it in our config.json file adding the configuration to our executors section and changing the credentials for ours:</p><pre>&quot;executors&quot;: [<br>    {<br>      &quot;id&quot;:&quot;twitter_default&quot;,<br>      &quot;type&quot;:&quot;@runnerty-executor-twitter&quot;,<br>      &quot;consumerKey&quot;:&quot;MyTwitterConsumerKey&quot;,<br>      &quot;consumerSecret&quot;:&quot;MyTwitterconsumerSecret&quot;,<br>      &quot;accessToken&quot;:&quot;MyTwitteraccessToken&quot;,<br>      &quot;accessTokenSecret&quot;:&quot;MyTwitteraccessTokenSecret&quot;<br>    }<br>  ]</pre><p>Now we are ready to cconfigure the process, going bat to the plan.json in the processes section, we are going to modify the existing process:</p><pre>&quot;processes&quot;: [<br>  {<br>    &quot;id&quot;: &quot;SEND_DM_TO_NEW_FOLLOER&quot;,<br>    &quot;name&quot;: &quot;It sends a direct message to the new follower&quot;,<br>    &quot;exec&quot;: {<br>      &quot;id&quot;: &quot;twitter_default&quot;,<br>      &quot;command&quot;:&quot;direct&quot;,<br>      &quot;screen_name&quot;:&quot;@GV(user_screen_name)&quot;,<br>      &quot;textToSend&quot;: &quot;Hi there, thanx for following me.&quot;<br>    },<br>    &quot;chain_action_on_fail&quot;: {<br>      &quot;action&quot;: &quot;end&quot;<br>    }<br>  }<br>]</pre><ul><li>I have removed the output section (This writes the output of the process in a file) we are not going to need it.</li><li>I have given a logic id and name to the process.</li><li>I have change the exec section adding the twitter executor and configuring the params to indicates the executor to send a DM, user id who may receive it and the message text.</li></ul><p>As you can see, I am using an runnerty function to get the user_screen_name. It is good to claryfy how it works.</p><p>The “user_screem_name” came from the twitter trigger which shares the information of the new follower with the rest of the chain once it is fired. If you look at the npm package documentation you can see all the data that is shared with the chain:</p><pre>user_id: number<br>user_id_str: number<br>user_name: string<br>user_screen_name: string<br>user_location: string<br>user_description: string<br>user_followers_count: number<br>user_friends_count: number<br>user_listed_count: number<br>user_favourites_count: number<br>user_statuses_count: number<br>user_lang: string<br>user_profile_background_image_url: string<br>user_profile_image_url: string<br>user_following: boolean<br>user_follow_request_sent: boolean<br>tweet_created_at: date<br>tweet_id: number<br>tweet_id_str: number<br>tweet_text: string<br>tweet_retweet_count: number<br>tweet_favorite_count: number<br>tweet_hashtags: object<br>tweet_data: object with all the data retreived by the Twitter API</pre><p>You have probably noticed that I am using a @GV() function in the “screen_name” property. This is a native function from Runnerty that gets the value from a variable. Runnerty also provides several functions for transforming data, you can have a look at the official documentantion <a href="http://docs.runnerty.io/functions/">http://docs.runnerty.io/functions/</a></p><p>Now we have our chain ready for lunching. All that we have to do is run:</p><pre>runnerty</pre><p>Every time we hav a new follower in twitter the chain is fired and sends an email to the new follower. You can download the entire demo in this repo: <a href="https://github.com/Jhonsensf/runnerty-simple-twitter-bot">https://github.com/Jhonsensf/runnerty-simple-twitter-bot</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ea45fe87ca1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/runnerty/build-a-twitter-bot-with-runnerty-in-less-than-5-minutes-2ea45fe87ca1">Build a Twitter bot with Runnerty in 5 min</a> was originally published in <a href="https://medium.com/runnerty">Runnerty</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Runnerty]]></title>
            <link>https://medium.com/runnerty/introducing-runnerty-1284c3e5d1b1?source=rss----81cdf9cf7bc9---4</link>
            <guid isPermaLink="false">https://medium.com/p/1284c3e5d1b1</guid>
            <category><![CDATA[automation-tools]]></category>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[processing]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[José Antonio Ruiz Santiago]]></dc:creator>
            <pubDate>Wed, 07 Mar 2018 17:11:04 GMT</pubDate>
            <atom:updated>2018-07-18T23:33:39.581Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/227/1*o02T8COvQpOzmf3CVbJeWg.png" /><figcaption>Runnerty logo</figcaption></figure><p>Runnerty is an open source process orchestrator written in nodejs. It allows us to plan and configure workflows easily, providing a big amount of features.</p><p>In this article I am going to explain how it works and why it can helps you.</p><h3>What is a process and a workflow?</h3><p>First thing we have to understand is what is a process and a workflow. A process is an action or operation and a workflow is a serie of processes conected and directed to some end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mTuBaRbtMt8DbBZ9YxQaCA.jpeg" /></figure><p>These are some examples of typical workflows in every system:</p><ul><li>Automatic backups</li><li>Mailing</li><li>Database operations</li><li>Files operations</li><li>ETL (Extract, transform, load)</li></ul><h3><strong>Based in four concepts</strong></h3><p>Runnerty is based in four concepts; Chains, executors, notifiers and triggers. To start configuring and planing our workflows we will have to understand how runnerty use this four components.</p><h4>Chains:</h4><p>A chain is just a set of processes. The place where we are going to configure or processes, establishing dependencies between them, sharing data from one process to the others, etc.</p><h4>Executors:</h4><p>The executors are runnerty plugins that allows us to do different opperations with our processes without writing a single line of code.</p><p>For example, we could execute an instruction in our Mysql database just configuring the Mysql Runnerty executor. Or send an email with the mail executor just indicating who and the text of the message.</p><p>There are a lot of executors already developed that you can use just installing them with npm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3xKYwTWsKcIpE2EWyZj5sQ.png" /><figcaption>Some of the existing executors</figcaption></figure><p>It is important to say that we are not obligated to use the runnerty executors, we could use any process that we already have developed, so runnerty is completely compatible with your actual system. Furthermore, Runnerty is language agnostic, it can run any process writen in any language (javascript, php, python, bash, etc)</p><h4>Notifiers:</h4><p>Another awesome feature of runnerty is the possibility to get notified when an event occurs in our chain or processes. For example, we would like to know when a process of our chain fails.</p><p>As the executors, the notifiers are plugins which Runnerty use for this end. we can get notified via telegram, slack, etc, in different events of the processes or chain, (start, end, fail, retry, etc).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PVoRcVxR9AKyxnN3UBwr9Q.png" /><figcaption>Some of the notifiers already developed</figcaption></figure><h4>Triggers:</h4><p>Once we know that we can config a chain with our processes using the runnerty executors to execute operations and notifiers to know when something happen in our processes, it just left to know how we can indicate when out chain has to start.</p><p>Ad hoc, runnerty provides another kind of plugins called triggers. The triggers fires our chains and can do that in several ways. For example every hour, or in an specific date, or when a file is left in a directory, or when a new user is inserted in a Firebase database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vnx8cr0U7udehPwvmmEAeQ.png" /><figcaption>Some of the existing triggers</figcaption></figure><h3>Hands on code</h3><p>Do you find interesting what runnerty can do? Let’s follow the quick-start they have to get in touch with the code.</p><p><strong>Installing runnerty and cloning the repo:</strong></p><p>To install runnerty in our system all we need is to have node v8.9.4</p><pre>npm install runnerty -g</pre><p>Now we can clone the quick-start repo and go into the project:</p><pre>git clone <a href="https://github.com/runnerty/runnerty-quick-start">https://github.com/runnerty/runnerty-quick-start</a><br>cd runnerty-quick-start</pre><p>This repo contains a simple chain with just one process, this process only executes an echo using the shell executor. The chain is fired every minute using the scheduler trigger:</p><p>Let’s have a look at the files:</p><p><strong>package.json</strong>. Here we can see the runnerty modules installed as dependencies, if we want to add more executors, triggers or notifiers we just have to install them via npm.</p><pre>&quot;dependencies&quot;: {<br>    &quot;@runnerty/trigger-schedule&quot;: &quot;latest&quot;,<br>    &quot;@runnerty/executor-shell&quot;: &quot;latest&quot;<br>  }</pre><p><strong>config.json.</strong> In this file is where we are going to add the configurations for our executors, notifiers and triggers:</p><pre>{<br>  &quot;triggers&quot;: [<br>    {<br>      &quot;id&quot;:&quot;schedule_dafault&quot;,<br>      &quot;type&quot;:&quot;@runnerty-trigger-schedule&quot;<br>    }<br>  ],<br>  &quot;executors&quot;: [<br>    {<br>      &quot;id&quot;: &quot;shell_default&quot;,<br>      &quot;type&quot;: &quot;@runnerty-executor-shell&quot;<br>    }<br>  ]<br>}</pre><p>As we can see in the file there are only two configurations, for the shedule trigger and for the shell executor.</p><p><strong>plan.json.</strong> Finnally in this file is where our chain and processes are:</p><pre>{<br>  &quot;chains&quot;:[<br>    {<br>      &quot;id&quot;:&quot;CHAIN_ONE&quot;,<br>      &quot;name&quot;:&quot;Chain one sample&quot;,<br>      &quot;triggers&quot;:[<br>        {<br>          &quot;id&quot;:&quot;schedule_dafault&quot;,<br>          &quot;schedule_interval&quot;:&quot;*/1 * * * *&quot;<br>        }<br>      ],<br>      &quot;processes&quot;:[<br>      ]<br>    }<br>  ]<br>}</pre><p>At the first level of the chain we have the general data of the chain (name and id) and in the triggers section we find the usage of the shcheduler trigger. In this case the interval given indicates that the chain is going to be executed every minute.</p><p>Below we find the processes array, in this section is where all the processes are configured:</p><pre>&quot;processes&quot;: [<br>  {<br>    &quot;id&quot;: &quot;PROCESS_ONE&quot;,<br>    &quot;name&quot;: &quot;Proccess One&quot;,<br>    &quot;exec&quot;: {<br>      &quot;id&quot;: &quot;shell_default&quot;,<br>      &quot;command&quot;: &quot;echo Runnerty: hello world!&quot;<br>    },<br>    &quot;chain_action_on_fail&quot;: {<br>      &quot;action&quot;: &quot;end&quot;<br>    },<br>    &quot;output&quot;: [<br>      {<br>        &quot;file_name&quot;: &quot;./test.log&quot;,<br>        &quot;write&quot;: [<br>          &quot;EXECUTION @GETVALUE(PROCESS_ID) - AT @GETDATE(&#39;YYYY-MM-DD                     HH:mm:ss&#39;)\n @GETVALUE(PROCESS_EXEC_MSG_OUTPUT)&quot;<br>        ],<br>        &quot;concat&quot;: true,<br>        &quot;maxsize&quot;: &quot;10mb&quot;<br>      }<br>    ]<br>  }<br>]</pre><p>As we can see there is only one process planed, it uses the shell executor executing an echo.</p><p>Having a look at the output property it is indicating to write the output of ther process in a file.</p><p>To executes this chain we just have to run runnerty in the project directory. And in the next minute will see how the test.log file is created with to output of the process.</p><pre>runnerty</pre><h3>What’s next?</h3><p>This is the easiest example of runnerty usage, it only shows a minimal part of its potential. Runnerty is a very powerful tool which provides awesome features to create and manage workflows:</p><ul><li>A large amount of executor, notifier and triggers to develop processes without writing code and connect them with several servicies and platforms.</li><li>Notifications on events to always know what is happening.</li><li>Simple and advanced dependencies between processes and chains.</li><li>Params and credential centralization.</li><li>Auto-gestioned logs.</li><li>Historification.</li><li>Language independence.</li><li>Easy scalable</li><li>…</li></ul><p>I really encourage you to have a look at the runnerty documentation (<a href="http://docs.runnerty.io/">http://docs.runnerty.io</a>) and find more information and tutorials.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1284c3e5d1b1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/runnerty/introducing-runnerty-1284c3e5d1b1">Introducing Runnerty</a> was originally published in <a href="https://medium.com/runnerty">Runnerty</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why use Runnerty?]]></title>
            <link>https://medium.com/runnerty/why-use-runnerty-dfa1af208977?source=rss----81cdf9cf7bc9---4</link>
            <guid isPermaLink="false">https://medium.com/p/dfa1af208977</guid>
            <category><![CDATA[process]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[workflow]]></category>
            <dc:creator><![CDATA[José Antonio Ruiz Santiago]]></dc:creator>
            <pubDate>Wed, 07 Mar 2018 17:07:43 GMT</pubDate>
            <atom:updated>2018-03-13T12:56:12.166Z</atom:updated>
            <content:encoded><![CDATA[<p>Every software team has have to deal with processes development, execution and planning. Normally we use cron jobs for this issue. Most of the times these tasks become really tough due to different difficulties:</p><ul><li><strong>Impossibility to modularize functionalities</strong>. We end writing giant processes with hundreds of lines that do a lot of stuff.</li><li><strong>Lack of dependencies between processes. </strong>If we want to execute one process after another we have to “trust” that the first one has ended by the time that the second one has to start.</li><li><strong>Completly ignorance of what is going on. </strong>It is almost impossible (unless you specifically develop it.) to know when something failed in your processes. It is usual to check every day long logs to know if something went wrong.</li><li><strong>High maintenance and development costs. </strong>The workflows ends becoming a messy group of processes very hard to mantain and difficult to evolve.</li></ul><p>Due to this problematic, Runnerty was born on 2016. Having tested Airflow from Airbnb and Luigi from Spotify both of them were not deep enough for most of the needs. We found that they were made for one concrete solution and we wanted something wider which any developer could use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhbPLVlEQc_zql08xHrJdg.png" /></figure><h3>Runnerty main features:</h3><ul><li><strong>Real dependencies. </strong>Let to establish dependencies between processes. Not just to wait until the previous processes has ended. It supports complex dependencies, for example when a process fails, retires, or also evaluate a process output to decide what to do, etc.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Q_qaAZQ9ke5vHR57Cmxc4A.png" /><figcaption>Workflow example.</figcaption></figure><ul><li><strong>Modularization</strong>. Runnerty provides an ecosystem which allows us to configure processes without coding any line, just adding modules and configuring them.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3xKYwTWsKcIpE2EWyZj5sQ.png" /><figcaption>Some of the runnerty existing modules</figcaption></figure><ul><li><strong>Language agnostic. </strong>javascript?, python?, php?.<strong> </strong>Runnerty is compatible with any existing language. If you already have working processes, you can bring them to Runnerty.</li><li><strong>Get notified whenever you want. </strong>It also provides notifiers modules which allows you to know everything of your processes and workflows. You can get advised when a processes fails, or when a workflow starts or ends.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PVoRcVxR9AKyxnN3UBwr9Q.png" /><figcaption>Some of the existing notifiers modules</figcaption></figure><ul><li><strong>Easy and powerful. </strong>From a simple task to a huge workflow with hundreds of processes. Runnerty is so easy to develop with that you can build your first workflow in minutes. And thanks to the modularization, you can create complex workflows reducing dramatically the development time.</li><li><strong>Historization. </strong>Do you want to know what happened with your workflow last month? or how much have increased the execution time of any process?. It is possible to connect runnerty to a database to store all the data of your workflows executions.</li><li><strong>Centralization. </strong>Forget about having your passwords, keys or access tokens in you code or replied in dozens of processes. With runnerty you can have them centralized. And not only passwords, also params, paths, etc. Furthermore, you can have them encrypted!</li><li><strong>In the right place at the right time. </strong>Execute your workflows whenever you want or from wherever you want. You can plan you workflows using the runnerty trigger modules. They let you to execute your workflows at an specific time, or when a file is left in a directory, even when you have a new follower on twitter. Moreover, Runnerty provides an API to execute, stop or force a workflows remotely.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vnx8cr0U7udehPwvmmEAeQ.png" /><figcaption>Runnerty triggers modules.</figcaption></figure><p>These are just some of the Runnerty features, there are a few more that makes really easy to schedule a workflow with Runnerty.</p><h3>Do you want to know more?</h3><p>If you found this article iteresting, then I really encourage you to read more and have a look to the official documentation:</p><ul><li><strong>Build a twitter bot with runnerty in 5 minutes:</strong> <a href="https://medium.com/runnerty/build-a-twitter-bot-with-runnerty-in-less-than-5-minutes-2ea45fe87ca1">https://medium.com/runnerty/build-a-twitter-bot-with-runnerty-in-less-than-5-minutes-2ea45fe87ca1</a></li><li><strong>Introducing Runnerty:</strong> <a href="https://medium.com/runnerty/introducing-runnerty-1284c3e5d1b1">https://medium.com/runnerty/introducing-runnerty-1284c3e5d1b1</a></li><li><strong>Official documentation:</strong> <a href="http://docs.runnerty.io/">http://docs.runnerty.io</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfa1af208977" width="1" height="1" alt=""><hr><p><a href="https://medium.com/runnerty/why-use-runnerty-dfa1af208977">Why use Runnerty?</a> was originally published in <a href="https://medium.com/runnerty">Runnerty</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>