Back to index

nordugrid-arc-nox  1.1.0~rc6
Classes | Functions | Variables
states.cpp File Reference
#include <string>
#include <list>
#include <iostream>
#include "../files/info_files.h"
#include "../jobs/job_request.h"
#include "../run/run_parallel.h"
#include "../conf/environment.h"
#include "../mail/send_mail.h"
#include "../log/job_log.h"
#include "../conf/conf_file.h"
#include "../jobs/users.h"
#include "../jobs/job.h"
#include "../jobs/plugins.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <glibmm.h>
#include <arc/DateTime.h>
#include <arc/StringConv.h>
#include <arc/URL.h>
#include <arc/credential/VOMSUtil.h>
#include "states.h"

Go to the source code of this file.

Classes

class  JobFDesc

Functions

static time_t prepare_cleanuptime (JobId &job_id, time_t &keep_finished, JobsList::iterator &i, JobUser &user)

Variables

static Arc::Loggerlogger = Arc::Logger::getRootLogger()

Function Documentation

static time_t prepare_cleanuptime ( JobId job_id,
time_t &  keep_finished,
JobsList::iterator i,
JobUser user 
) [static]

Definition at line 1192 of file states.cpp.

                                                                                                         {
  JobLocalDescription job_desc;
  time_t t = -1;
  /* read lifetime - if empty it wont be overwritten */
  job_local_read_file(job_id,user,job_desc);
  if(!Arc::stringto(job_desc.lifetime,t)) t = keep_finished;
  if(t > keep_finished) t = keep_finished;
  time_t last_changed=job_state_time(job_id,user);
  t=last_changed+t; job_desc.cleanuptime=t;
  job_local_write_file(*i,user,job_desc);
  return t;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 40 of file states.cpp.