hydra-queue-runner: Implement --unlock

[?]
Jun 17, 2015, 7:35 PM
JFD25IUUZL3Y6UGZYP4O2OZ3PXBDKAAQNA2ZDK3HMZEC2MB2XPHAC

Dependencies

  • [2] RQUAATWB Add status dump facility
  • [3] C6HOMHZW Don't try to handle SIGINT
  • [4] 24BMQDZA Start of single-process hydra-queue-runner
  • [5] NJJ7H64S Very basic multi-threaded queue runner

Change contents

  • edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 1269
    [3.3512][2.1313:1447]()
    parseCmdLine(argc, argv, [&](Strings::iterator & arg, const Strings::iterator & end) {
    return false;
    });
  • edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 1272
    [3.232]
    [3.19176]
    bool unlock = false;
  • edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 1275
    [3.19177]
    [3.19177]
    parseCmdLine(argc, argv, [&](Strings::iterator & arg, const Strings::iterator & end) {
    if (*arg == "--unlock")
    unlock = true;
    else
    return false;
    return true;
    });
  • replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 1290
    [3.19444][3.3822:3843]()
    state.run();
    [3.19444]
    [3.19568]
    if (unlock)
    state.clearBusy(0);
    else
    state.run();