Better Cron Tasks
Based on the Cron Tasks
With Better Cron Tasks, you can schedule tasks/jobs to run periodically at fixed times, dates, or intervals.
HowTo
In your settings.json:
"cronTasks.tasks": [
{
"at": "* * * * *",
"run": "workbench.action.tasks.runTask",
"args": ["nameOfYourTask"]
},
],
at
: a cron expression
run
: a vscode command
args
: argument you want to pass to the command
Debugging
The extension always prints out debug information into the channel Better Cron Tasks
of the panel Output
(menu: View
/ Output
).
But if the property cronTasks.debug
(false
by default) is true
or "on"
, the extension will bring that channel to focus.
blank
With "cronTasks.debug": "useBlank"
, the extension will print out debug information as usual but it won't call the final task.
test command
The command cronTasks.showTestMessage
will display a simple notification.
Notification
The property cronTasks.notification
(minor
by default) indicates when to show the update notification.
Enjoy!
Attributions
Clock icons created by Freepik - Flaticon