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

repo: create a doc folder, add flux-accounting guide #446

Merged
merged 3 commits into from
May 10, 2024

Conversation

cmoussa1
Copy link
Member

@cmoussa1 cmoussa1 commented Apr 25, 2024

Problem

flux-accounting has a guide in flux-docs, which can be tedious to maintain when things change here in this repo.


This PR adds the flux-accounting guide to this repository in a newly-created doc/ folder, following a similar format to flux-core. It also removes the flux-accounting version number from the guide.

Lastly, I've added a commit to update the instructions on running commands to populate the flux-accounting DB with job records now that #357 has landed.

@cmoussa1 cmoussa1 added documentation Improvements or additions to documentation new feature new feature labels Apr 25, 2024
@cmoussa1 cmoussa1 requested a review from garlick April 25, 2024 15:44
@cmoussa1 cmoussa1 requested review from jameshcorbett and removed request for garlick May 9, 2024 19:54
Copy link
Member

@jameshcorbett jameshcorbett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! One nit.


Both "types" of jobs, *running* and *active*, are based on Flux's definitions
of job states_. *Active* jobs can be in any state but INACTIVE. *Running* jobs
are jobs in both RUN and CLEANUP states.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"in either RUN or CLEANUP states"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion, thanks for catching this - I will fix!

cmoussa1 added 3 commits May 10, 2024 08:31
Problem: flux-accounting has a guide, but it lives in another repo,
which can be tedious to maintain.

Add the flux-accounting guide to this repository in a newly-created
doc/ folder.
Problem: The version number of flux-accounting is mentioned in the
guide, but since this document now lives in the flux-accounting repo, it
can now be implied that the guide applies to the current version.

Drop the mention of the version number of flux-accounting from the
guide.
Problem: The Accounting Guide does not detail instructions for the new
job archival method in flux-accounting.

Update the flux-accounting guide with the new instructions on setting up
the new Python script that fetches inactive jobs and stores them in the
flux-accounting DB to be used for job usage and fair share calculation.

Update the code block that shows which commands to set up with
flux-cron.

Update the list of tables present in the flux-accounting database to
account for the new "jobs" table.
@cmoussa1
Copy link
Member Author

Thanks for reviewing @jameshcorbett! Setting MWP here

@mergify mergify bot merged commit 4a49f54 into flux-framework:master May 10, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation merge-when-passing new feature new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants