flux-framework / flux-accounting

bank/accounting interface for the Flux resource manager
https://flux-framework.readthedocs.io/projects/flux-accounting/en/latest/index.html
GNU Lesser General Public License v3.0
3 stars 10 forks source link

`flux account-fetch-job-records`: script could potentially not grab all inactive jobs in a certain window #515

Closed cmoussa1 closed 1 month ago

cmoussa1 commented 1 month ago

flux account-fetch-job-records uses flux.job.job_list_inactive() to fetch all jobs that have finished since a certain time. However, it does not set a value for max_entries, which defaults to 1000. This would mean that it could miss fetching certain jobs if more than 1000 completed since a certain time.

max_entries should be set to 0 to get all jobs that have finished since a certain timestamp.