1. 28 Nov, 2018 6 commits
    • Swann Perarnau's avatar
      [fix] remove container ownership concept · a47ec65f
      Swann Perarnau authored
      Make it so that the daemon will delete containers when all commands it
      is aware of are finished, instead of relying on a single owner that
      needs to be tracked.
      This simplifies the handling to multiple commands in the same container,
      and should not impact the rest.
    • Swann Perarnau's avatar
      [refactor] move container start/exit to up_pub · f81b95e0
      Swann Perarnau authored
      Move the container start/exit events to the upstream pub/sub event
      stream. As these are more of a global event now that we support multiple
      commands in the same container, it makes sense to move them to the more
      general event stream.
      This patch also remove the code in cmd waiting for container start or
      exit, making (temporarily) the cmd unable to report power metrics. We
      will fix that in a later commit.
      This patch fixes complicated issues we had with how a job running
      multiple commands in the container might not all wait for the end of the
      container: now none of them do.
    • Swann Perarnau's avatar
      [feature] add messaging class for pub client · c4e50535
      Swann Perarnau authored
      Add a upstream pub client, to be able to listen to messages coming from
      the daemon on the upstream pub/sub channel.
      Doesn't support any fancy filter, as that's not used by the daemon so
    • Swann Perarnau's avatar
      [fix] ensure container has single owner · 93ae9144
      Swann Perarnau authored
      Ensure that the client that created the container is considered as the
      one owning it, with the consequence that if its command exits, the
      container is destroyed. Also deals with the race issue we had on the cmd
    • Swann Perarnau's avatar
      [refactor/fix] always send process events for run · 6e0c1e7a
      Swann Perarnau authored
      Current code sends start/exit events when a container is created and
      process_start/process_exit when its already there. Instead, have the
      container start/exit only care about container stuff, and always sends
      the process start/exit events around. That makes the cmd run fsm easier
      to work out.
      Changes the message format a tiny bit.
      Fixes some missing stdout/stderr issues we had before.
    • Swann Perarnau's avatar
      [fix] have command provide a default uuid · 2344824c
      Swann Perarnau authored
      Previous merges let the cmd send an empty container uuid, resulting in
      some issues when the user doesn't provide one. Restore the previous
  2. 26 Nov, 2018 1 commit
  3. 01 Nov, 2018 1 commit
  4. 23 Oct, 2018 2 commits
  5. 21 Oct, 2018 3 commits
  6. 17 Oct, 2018 2 commits
  7. 06 Sep, 2018 2 commits
    • Swann Perarnau's avatar
      Merge branch 'fix-ioloop' into 'master' · aece6b21
      Swann Perarnau authored
      [fix] Lock with Pipenv all packages
      See merge request !25
    • Swann Perarnau's avatar
      [fix] Lock with Pipenv all packages · 3e1742f9
      Swann Perarnau authored
      Some packages were being pulled into the virtual environment through
      setup.py. It just happens that the new versions of pyzmq and tornado
      don't really play nice with the current daemon code. Mostly because of a
      "better" ioloop hijacking mecanism, that doesn't work for us.
      This patch moves the install requirements of the setup.py to Pipfile,
      and lock them to a working version.
      Note: the code still currently triggers #14.
  8. 15 Aug, 2018 3 commits
  9. 14 Aug, 2018 1 commit
  10. 13 Aug, 2018 2 commits
  11. 10 Aug, 2018 6 commits
  12. 09 Aug, 2018 2 commits
  13. 30 Jul, 2018 2 commits
  14. 25 Jul, 2018 3 commits
  15. 19 Jul, 2018 2 commits
  16. 17 Jul, 2018 2 commits