edit-icon download-icon

Create a job

Last Updated: Jan 31, 2018
  1. In the left-side navigation pane in the EDAS console, select Scheduler > Jobs, and then click Create Job at the upper-right corner of the page.

  2. In the Create Job dialog box, enter related information and click OK.

    Create job

    Fields description:

    • Job Group: Select the Region and job group from the drop-down list.

    • Job Processing Interface: enter the full path and name of the class that implements the job interface.

      SchedulerX-Client automatically creates the object according to the full path and name of the class. If the Spring environment is used and the object has dependency on other classes, SchedulerX-Client finds the corresponding Spring bean in the Spring environment and automatically injects the corresponding dependent object.

    • Type: Select job type from the drop-down list.

      • Simple Job Single-Machine Edition

        From all hosts that are started and connected to the group, randomly select a host to trigger and run the job.

      • Simple Job on Multi-Machine Edition (Only SchedulerX-Client 1.6.6 or later versions are allowed)

        Trigger and run the jobs on all hosts that are started and connected to the group.

    • Cron expression:

      • Use the tool to generate the time expression:

        Generate expre via tools

      • Manually modify the cron expression string:

        Generate expre via script

      The Cron expression is compatible with the Quartz time expression. The Quartz time expression provides seven fields, which are second, minute, hour, day, month, week, and year respectively. It’s safe to omit the year most of the time.

      In addition to numbers, you can use some special characters to provide functions such as list, range, and wildcard in the time fields in the time expression.

      • Asterisk (*): This character can be used in all fields to represent any moment in the corresponding time field. For example, an asterisk in the minute field represents “any minute”.

      • Question mark (?): This character can be used only in the date and week fields. The character generally represents a “meaningless value”, which is similar to a placeholder.

      • Hyphen (-): This character represents a range. For example, enter “10-12” in the hour field to represent 10:00 to 12:00, namely, 10:00, 11:00, and 12:00.

      • Comma (,): This character represents a list value. For example, “MON,WED,FRI” in the week field represents Monday, Wednesday, and Friday.

      • Slash (/): x/y represents an equal-step sequence, where x is the start value, and y is the incremental step value. For example, if you enter 0/15 in the minute field, it represents 0s, 15s, 30s, and 45s. If you enter 5/15 in the minute field, it represents, 5, 20, 35, and 50 minute. You can also use */y, which equals to 0/y.

      Differences between the Quartz time expression format and the Linux Crontab format:

      The Quartz time expression supports second-level precision, while Linux Crontab supports minute-level precision.

      • Linux Crontab provides five fields (minute, hour, day, mouth, and week), while Quartz provides seven fields.
Thank you! We've received your feedback.