Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (31 sloc) 909 Bytes
layout title icon group
samples
Scheduled Job
fa-caret-right
complex

{{ page.title }}

Steps

  1. Create a project job_console_project
  2. Then create a JavaScript service named my_job_handler.js
  3. Replace the service code with the following content:

Log Levels

console.log("Hello from the My Job!");
  1. Then create a Scheduled Job named my_job.job
  2. Replace the content with the following JSON code:
{
	"expression":"0/10 * * * * ?",
	"handler":"job_console_project/my_job_handler.js",
	"description":"My Job"
}
  1. Publish the project

  2. After 10s in the Console view you should see the following lines:

    [2018-05-14T12:05:00.061Z] [INFO] Hello from the My Job!

Note: the log messages in the Console view are in a reverse order - the newest are on top


For more information, see the API documentation.