Skip to content

discos/finalizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

finalizer.py - v0.5 - IRA - INAF

INSTALLATION

dependencies:

  • python >= 2.6

USAGE

finalizer.py -c config file

File config file should contain the following variables:

  • job_files_incoming_folder = folder containing jobsfiles to be executed
  • job_files_done_folder = folder where jobfiles are moved after completion
  • tar_folder = *folder *
  • job_status_folder = folder used to store the jobs state
  • lock_file = lock file path
  • pid_file = pid file path
  • debug_level = debug level (1: critical errors, 2: non-critical errors, 3: debug info)

HOW IT WORKS

  • read the configuration file
  • check if there are other running instances
  • check for files named <schedule_name>.rep inside folder job_files_incoming_folder contaning the following lines:
    • log
    • scan1
    • ...
    • scanN
  • for each scanN line, produce inside tar_folder a file named .tar containing the files contained in scanN
  • if a file lock_file is present, any operation will be interrupted, the current state is saved and the program exit.
  • if the file is correctly produced, the jobfile is moved to job_files_done_folder.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages