Answers: <p>It seems like <em><strong>forget</strong></em> in this context is not really what it sounds like. Instead it is rather something like &quot;<em><code>Don't keep me waiting for the process to complete, so that I can do something else while the process is running. And when the process is done (succeeded or failed), we'll continue processing with whatever is next</code></em>&quot;.</p>
  <p>An example '<em>for which using &quot;fire and forget&quot; in Jenkins does make sense</em>' (as in my question) is creating parallel chains to reduce the duration of  pipelines, and combine it with using the <a href="http://wiki.jenkins-ci.org/display/JENKINS/Join+Plugin" rel="nofollow noreferrer">Join plugin</a>. Some more details about this plugin (from the linked page):</p>
  <blockquote>
  <p>This plugin allows a job to be run after all the immediate downstream jobs have completed. In this way, the execution can branch out and perform many steps in parallel, and then run a final aggregation step just once after all the parallel work is finished.</p>
  <p>The plugin is useful for creating a 'diamond' shape project dependency.   This means there is a single parent job that starts several downstream jobs. Once those jobs are finished, a single aggregation job runs.</p>
  </blockquote>
  
Answers: CC BY-SA 3.0
Answers: 2017-04-05T14:03:19.847Z
Answers: 2017-04-05T14:03:19.847Z
Answers: 2020-06-18T08:28:10.803Z
Answers: Pierre.Vriens
Answers: <p>In this case, "Fire and Forget" doesn't mean what you think it means.</p>
  
  <p>It isn't the case that you fire the build and then forget about the outcome.  What actually happens is that you fire the event, and then forget about what the process is doing up until the point where the process returns feedback to you and reminds you about what was fired.</p>
  
  <p>As an example, the old way of doing things might be to trigger a build and then let it run while you watch the output. You sit there watching the results of the build as they occur and don't work on anything else productive during that time. Or you do work on something productive, but you have one eye on the build process.  When it is done, you need to either be paying attention, or remember to check on it to see the results and then continue based on that.</p>
  
  <p>In Jenkins model of "Fire and Forget", you have some automated process do the build for you, and your mind is not focused on the build process until something goes wrong, or the build completes.  At that point, you get a message from Jenkins, either as an email or in a program like slack, which now reminds you of the build process and tells you all the information you need to know to move on.  In the meantime, you were working on some other task with your full focus, because you knew that you didn't have to keep an eye on it. The automated system would alert you to anything you needed to know.</p>
  
Answers: CC BY-SA 3.0
Answers: 2017-04-02T17:26:51.730Z
Answers: 2017-04-03T06:28:47.607Z
Answers: 2017-04-03T06:28:47.607Z
Answers: avi
Answers: <p>I wouldn't describe Jenkins jobs as "fire and forget."  They are designed to run automatically without the need for human interaction, however, that doesn't mean the result of a job is not visible.  Quite the opposite- detailed logs of all activity are available for jobs ranging from command-line tools to custom deployment jobs.</p>
  
  <p>The testing results from Jenkins jobs are routinely displayed on large-screen TVs all over the Development floor of many companies I've seen.  There are whole plugins devoted to making this type of information available to developers, Ops, and management in a dashboard format.</p>
  
Answers: CC BY-SA 3.0
Answers: 2017-03-29T20:45:24.177Z
Answers: 2017-03-29T20:45:24.177Z
Answers: Dave Swersky
Body: <p>When using Jenkins to trigger some process (eg a remote build) at a remote location, why would you ever want to "<strong><em>fire</em></strong>" something, and then just "<strong><em>forget</em></strong>" about the outcome of what got triggered remotely? At least that is what "fire and forget" seems to be about.</p>
  
  <p>Such "fire and forget" sounds like not respecting some of the basic rules in IT: in whatever process (or program, etc) you write, try to always be prepared for unexpected conditions (return codes, etc) that may arise. So that you'll also have appropriate error handling in place.</p>
  
  <p>To the extend it does make sense, in the (mainframe) SCM tool that I'm most familiar with, you'd start some FTP process from a dev environment to a remote target (eg to distribute and activate executables). And sooner or later (asynchronously) somebody gets some kind of acknowledgement back (from the remote target to the dev site) that indicates "success or failure". And if within a reasonable amount of time no feedback at all is returned, you know that something is not working as it should. Using such scenarios, you'll never <em>forget</em> what got <em>fired</em>.</p>
  
  <p>Any examples for which using "fire and forget" in Jenkins does make sense?</p>
  
Comments: CC BY-SA 3.0
Comments: 2017-03-29T20:20:05.890Z
Comments: Because the task is responsible of alerting if something goes wrong, that's not the scheduler job to supervise it at all if nothing depends on it. E.g: a daily backup, the scheduler just have to fire it up at the right time once batches have ended, it's the backup task duty to catch errors and warn about them. The scheduler state of failed would not bring any information to act on. Separation of duties at code level :)
Comments: Tensibai
Tags: <jenkins>
Title: Why trigger something remotely (using Jenkins) and then just forget about it?
UserDisplayName: Pierre.Vriens
ThreadText: # Why trigger something remotely (using Jenkins) and then just forget about it?
  
  (Asked by: username_0 on 2017-03-29)
  
  When using Jenkins to trigger some process (eg a remote build) at a remote location, why would you ever want to "***fire***" something, and then just "***forget***" about the outcome of what got triggered remotely? At least that is what "fire and forget" seems to be about.
  
  Such "fire and forget" sounds like not respecting some of the basic rules in IT: in whatever process (or program, etc) you write, try to always be prepared for unexpected conditions (return codes, etc) that may arise. So that you'll also have appropriate error handling in place.
  
  To the extend it does make sense, in the (mainframe) SCM tool that I'm most familiar with, you'd start some FTP process from a dev environment to a remote target (eg to distribute and activate executables). And sooner or later (asynchronously) somebody gets some kind of acknowledgement back (from the remote target to the dev site) that indicates "success or failure". And if within a reasonable amount of time no feedback at all is returned, you know that something is not working as it should. Using such scenarios, you'll never *forget* what got *fired*.
  
  Any examples for which using "fire and forget" in Jenkins does make sense?
  
  **Tags:** jenkins
  
  > **Comments:**
  > **username_1**: Because the task is responsible of alerting if something goes wrong, that's not the scheduler job to supervise it at all if nothing depends on it. E.g: a daily backup, the scheduler just have to fire it up at the right time once batches have ended, it's the backup task duty to catch errors and warn about them. The scheduler state of failed would not bring any information to act on. Separation of duties at code level :)  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_0 on 2017-04-05. Score: 1 | Accepted answer
  
  It seems like ***forget*** in this context is not really what it sounds like. Instead it is rather something like "*`Don't keep me waiting for the process to complete, so that I can do something else while the process is running. And when the process is done (succeeded or failed), we'll continue processing with whatever is next`*".
  
  An example '*for which using "fire and forget" in Jenkins does make sense*' (as in my question) is creating parallel chains to reduce the duration of pipelines, and combine it with using the [Join plugin](http://wiki.jenkins-ci.org/display/JENKINS/Join+Plugin). Some more details about this plugin (from the linked page):
  
  > This plugin allows a job to be run after all the immediate downstream jobs have completed. In this way, the execution can branch out and perform many steps in parallel, and then run a final aggregation step just once after all the parallel work is finished.
  >
  > The plugin is useful for creating a 'diamond' shape project dependency. This means there is a single parent job that starts several downstream jobs. Once those jobs are finished, a single aggregation job runs.
  
  
  ---
  
  ### Answer by username_2 on 2017-04-02. Score: 6
  
  In this case, "Fire and Forget" doesn't mean what you think it means.
  
  It isn't the case that you fire the build and then forget about the outcome. What actually happens is that you fire the event, and then forget about what the process is doing up until the point where the process returns feedback to you and reminds you about what was fired.
  
  As an example, the old way of doing things might be to trigger a build and then let it run while you watch the output. You sit there watching the results of the build as they occur and don't work on anything else productive during that time. Or you do work on something productive, but you have one eye on the build process. When it is done, you need to either be paying attention, or remember to check on it to see the results and then continue based on that.
  
  In Jenkins model of "Fire and Forget", you have some automated process do the build for you, and your mind is not focused on the build process until something goes wrong, or the build completes. At that point, you get a message from Jenkins, either as an email or in a program like slack, which now reminds you of the build process and tells you all the information you need to know to move on. In the meantime, you were working on some other task with your full focus, because you knew that you didn't have to keep an eye on it. The automated system would alert you to anything you needed to know.
  
  
  ---
  
  ### Answer by username_3 on 2017-03-29. Score: 6
  
  I wouldn't describe Jenkins jobs as "fire and forget." They are designed to run automatically without the need for human interaction, however, that doesn't mean the result of a job is not visible. Quite the opposite- detailed logs of all activity are available for jobs ranging from command-line tools to custom deployment jobs.
  
  The testing results from Jenkins jobs are routinely displayed on large-screen TVs all over the Development floor of many companies I've seen. There are whole plugins devoted to making this type of information available to developers, Ops, and management in a dashboard format.
  
  
  ---
  
  