Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add utility for posting job events manually if required #5848

Merged
merged 4 commits into from
Apr 2, 2024

Commits on Apr 2, 2024

  1. job-manager: add plugin to assist posting manual job events

    Problem: Sometimes a job becomes stuck in a given state, requiring
    intervention by forcing an event to be posted to the job manager.
    Currently, this requires building a custom jobtap plugin, which is
    annoying and not sysadmin friendly.
    
    Add a builtin jobtap plugin that will simply post a custom job
    event defined in the RPC.
    grondo committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    e41df2a View commit details
    Browse the repository at this point in the history
  2. cmd: add flux-post-job-event.py

    Problem: There's no convenient way to post job events manually when
    it's necessary.
    
    Add a new `flux post-job-event` command which sends an RPC to the
    job-manager.post-event.post service when called, e.g.:
    
      flux post-job-event JOBID NAME [KEY=VAL, KEY=VAL..]
    
    This command is meant to be a temporary solution to clean up cases
    where a job gets stuck in CLENAUP becuase an epilog-start event was
    posted without a corresponding epilog-finish event.
    grondo committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    1c474cf View commit details
    Browse the repository at this point in the history
  3. testsuite: add tests for post-job-event

    Problem: There's no tests for the `flux post-job-event` utility.
    
    Add a new sharness test t2815-post-job-event.t.
    grondo committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    34db805 View commit details
    Browse the repository at this point in the history
  4. pyproject: quote python version in pyproject.toml

    Problem: mypy complains
    
     pyproject.toml: [mypy]: python_version: Python 3.6 is not supported
       (must be 3.8 or higher). You may need to put quotes around your
       Python version
    
    Put quotes around the python version.
    grondo committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    0304022 View commit details
    Browse the repository at this point in the history