Hi! I use this code to get available disk space:
def get_free_space(client):
batch_job_service = client.GetService('BatchJobService', version='v201809')
batch_job_operations = [{
'operand': {},
'operator': 'ADD'
}]
return batch_job_service.mutate(batch_job_operations)['value'][0]['diskUsageQuotaBalance']
It returns 392447 (=392Mb), but I cant see any jobs in ACTIVE or AWAITING_FILE status. How is it possible? Do DONE or CANCELED jobs take space?
Also, it seems like AWAITING_FILE jobs are spawned from time to time and they cant be always canceled by setting their status to CANCELING.
For example, I haven't created jobs (at least recently) with these ids: 933377935,933614454, but they are running now.
Any advice would be great.