Skip to content

Comments

jobs table: store duration_delta#744

Open
cmoussa1 wants to merge 3 commits intoflux-framework:masterfrom
cmoussa1:add.duration_delta.to.db
Open

jobs table: store duration_delta#744
cmoussa1 wants to merge 3 commits intoflux-framework:masterfrom
cmoussa1:add.duration_delta.to.db

Conversation

@cmoussa1
Copy link
Member

Problem

The jobs table does not store the duration delta (i.e. the difference between a job's requested duration and its actual duration) anywhere in the database.


This PR adds the duration delta as a new column to the jobs table, where it is also added to the list of values INSERT-ed for each completed job it sees.

@cmoussa1 cmoussa1 added improvement upgrades to an already existing feature database related to the flux-accounting database labels Sep 16, 2025
Problem: The "jobs" table does not store the duration delta (i.e. the
difference between a job's requested duration and its actual duration)
anywhere in the database.

Add the duration delta as a new column to the "jobs" table. Increment
the database schema version number as a result of adding a new column.
Problem: The script that fetches recently completed jobs for accounting
purposes does not INSERT the duration delta into the "jobs" table.

Compute the duration delta and add it to the list of values INSERT-ed
into the "jobs" table for each completed job.
Problem: The flux-accounting database from before the addition of the
new duration_delta column to the "jobs" table is not in the testsuite,
but it should be a part of the update-db tests since the schema has
changed.

Add a flux-accounting DB with schema version 31 to the testsuite.
@cmoussa1 cmoussa1 force-pushed the add.duration_delta.to.db branch from a1626c7 to decf3d0 Compare October 1, 2025 19:19
@codecov
Copy link

codecov bot commented Oct 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.56%. Comparing base (9e96fd3) to head (decf3d0).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #744   +/-   ##
=======================================
  Coverage   83.56%   83.56%           
=======================================
  Files          27       27           
  Lines        2421     2421           
=======================================
  Hits         2023     2023           
  Misses        398      398           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

database related to the flux-accounting database improvement upgrades to an already existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant