3.11. Refund a Job

Now, since this was an imaginary job, you had better refund the user's account (see Issuing Job Refunds).

Example 3-12. Let's isse a refund for our job.

$ grefund -J PBS.1234.0

Successfully refunded 19744 credits for job PBS.1234.0
        

Our balance is back as it was before the job ran.

$ gbalance -p chemistry —total

Balance   
------------- 
360000000 
The account balance is 360000000 credits
        

The allocation, of course, is likewise restored.

$ glsalloc -p chemistry

Id Account StartTime  EndTime    Amount    CreditLimit Deposited Description 
--- ---------- --------------- --------------- ------------- ---------------- ------------- ----------------
2  2       2005-01-01 2006-01-01 360000000           0 360000000
        

Notice that the job charge is now zero because the job has been fully refunded.

$ glsjob

Id JobId      User Project   Machine Charge Class Type   Stage  QualityOfService Nodes Processors Executable Application StartTime EndTime WallDuration QuoteId Description 
--- --------------- ------ ------------- ---------- --------- ------- --------- --------- ------------------------ ------- --------------- --------------- ---------------- ------------- ---------- ------------------ ---------- ---------------- 
1  PBS.1234.0 amy  chemistry colony  0            Normal Charge                        16                                                  1234         1