Scheduled Jobs

You can define periodic tasks within the job configuration block of your FileShows or ft application's YAML configuration file. This allows for the automated execution of commands and scripts specified within the commands and scripts blocks.

crontab-list

Example Configuration

  • A. Toolbar
    • A1: Add Job
    • A0: All Jobs/Log Files
  • B. Job Lists
    • B1: Metadata (Job Name)
    • B2: Job Content (Action), Associated File
    • B3: Job Time Expression
    • B4: Latest Log File
    • B01: View Job Definition
    • B02: View Latest Log
    • B03: View All Logs
    • B04: Remove Job

Best Practices:

  • Auto-loading Tasks on Application Startup
    The application automatically loads configuration files from the ~/Documents/FileShows/jobfile directory.

  • Reloading and Restarting Tasks
    To reload and restart a task, first remove the existing task, then add it again.

  • Stopping a Running Task
    Stop a task by using the Remove Job function.

  • Cleaning Historical Log Files
    Use the command: ft clean ~/Documents/FileShows/joblogs --time_le='2 days ago'