Skip to content
Snippets Groups Projects

Heptapod PAAS Runner: improvements in job tracking, shutdown sequence and logs

Merged Georges Racinet requested to merge topic/heptapod/cc-wait-git into branch/heptapod
  1. Jan 14, 2023
    • Georges Racinet's avatar
      Heptapod PAAS Runner: improving logging of launching jobs · 328dc95ab0af
      Georges Racinet authored
      In case a job has an already launched PAAS resource (not
      to be confused with the job being fully launched, we really need
      to come up with a change in terminology), before this change the
      log would have said "Launching job.." but that was just acknowledging
      the start of `launch_job` which itself may do nothing else than resuming
       the tracking of the job trace.
      328dc95ab0af
    • Georges Racinet's avatar
      clever: fixing state loading of launched resources · 7b2615357481
      Georges Racinet authored
      We simply weren't loading the `launched` attribute, resulting
      in failed Git pushes (already mitigated by parent changeset).
      7b2615357481
    • Georges Racinet's avatar
      CleverCloudDockerRunner: detect if previously deployed · 1843e74d8274
      Georges Racinet authored
      In theory, Heptapod PAAS Runner state tracking should avoid
      attempting to deploy again an application. In practice, we
      currently have a silly bug about that (making easy to test
      for real that this change works).
      
      The bug will be fixed in next commit, leaving hopefully only
      exceptional cases (hard shutdown).
      1843e74d8274
    • Georges Racinet's avatar
      Heptapod PAAS Runner: improved logs of loaded state · 71af31d73f69
      Georges Racinet authored
      Using the new format already in service in the debug signal.
      Also, pending jobs are currently especially interesting, since
      we just implemented #42 and #39, hence logging their details
      at the `INFO` level.
      71af31d73f69
    • Georges Racinet's avatar
      PaasDispatcher.process_events(): stop waiting for launched threads · 36e969f98948
      Georges Racinet authored
      Now that the launcher threads are long (they wait for full job
      startub, see #42) and interruptible, waiting for them has become
      useless: all it was doing was to block shutdown until general timout,
      hence creating doubt about the consequences for ininterruptible operations
      (there weren't any, actually).
      36e969f98948
    • Georges Racinet's avatar
      Heptapod PAAS Runner: more useful logging of jobs and collections · 2324215e2ae9
      Georges Racinet authored
      The contract of `repr()` for `JobHandle` is not really appropriate,
      as we don't want to log the token.
      
      On the other hand we really nead more information about the state,
      and this is used with `--debug-signal`
      2324215e2ae9
  2. Jan 13, 2023
Loading