# Task with ScheduledTask type [[task]] id = 1 name = "Scheduled Task" command = "command" args = ["arg1", "arg2"] dir = "/path/to/directory" env = { key1 = "value1", key2 = "value2" } stdin = true stdout = "output.txt" stderr = "error.txt" created_at = 1654345600 task_type = { Scheduled = { year = 2022, month = 6, day = 4, hour = 12, minute = 30, second = 0 } } # Task with Async Task type [[task]] id = 2 name = "Async Task" command = "command" args = ["arg1", "arg2"] dir = "/path/to/directory" env = { key1 = "value1", key2 = "value2" } stdin = true stdout = "output.txt" stderr = "error.txt" created_at = 1654345600 task_type = { Async = { started_at = 1654345600, stopped_at = 1654345800 } } # Task with Periodic Task type [[task]] id = 3 name = "Periodic Task" command = "command" args = ["arg1", "arg2"] dir = "/path/to/directory" env = { key1 = "value1", key2 = "value2" } stdin = true stdout = "output.txt" stderr = "error.txt" created_at = 1654345600 task_type = { Periodic = { started_after = 3600, interval = 1800, last_run = 1654345600 } } [[task]] id = 4 name = "None Task" command = "command" args = ["arg1", "arg2"] dir = "/path/to/directory" env = { key1 = "value1", key2 = "value2" } stdin = false stdout = "output.txt" stderr = "error.txt" created_at = 1654345600 task_type = { None = {} }