Skip to content

Commit

Permalink
minor changes after deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Jul 23, 2024
1 parent c98cc7e commit 262c10d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
File renamed without changes.
3 changes: 2 additions & 1 deletion qiita_db/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2775,7 +2775,7 @@ def update_resource_allocation_table(weeks=1, test=None):
sacct = [
'sacct', '-p',
'--format=JobID,ElapsedRaw,MaxRSS,Submit,Start,End,CPUTimeRAW,'
'ReqMem,AllocCPUs,AveVMSize', '--starttime',
'ReqMem,AllocCPUs,AveVMSize,MaxVMSizeNode', '--starttime',
dates[0].strftime('%Y-%m-%d'), '--endtime',
dates[1].strftime('%Y-%m-%d'), '--user', 'qiita', '--state', 'CD']

Expand Down Expand Up @@ -2894,6 +2894,7 @@ def merge_rows(rows):
df['MaxRSSRaw'] = df.MaxRSS.apply(lambda x: MaxRSS_helper(str(x)))
df['ElapsedRawTime'] = df.ElapsedRaw.apply(
lambda x: timedelta(seconds=float(x)))
df.replace({nan: None}, inplace=True)

for index, row in df.iterrows():
with qdb.sql_connection.TRN:
Expand Down

0 comments on commit 262c10d

Please sign in to comment.