Features

Updated at:

SchedulerX provides the scheduling, execution, and O&M features to help you manage jobs.

Periodic scheduling

  • Cron scheduling: You can use Unix cron expressions to schedule jobs. For more information, see Cron. You cannot use cron expressions to trigger jobs at a second granularity.
  • Fixed-rate scheduling: If you use fixed-rate scheduling, the interval at which the system triggers jobs must be a multiple of 60 seconds. For example, you can set the interval to 40 minutes. Fixed-rate scheduling is suitable for round robin scheduling. Fixed-rate scheduling is simple and does not have the limitations of cron scheduling. For more information, see Fixed rate. You cannot use fixed-rate scheduling to trigger jobs at a second granularity.
  • Second-delay scheduling: Second-delay scheduling is suitable for workloads that require real-time computing. For example, you can use second-delay scheduling if you want to trigger jobs at an interval of 10 seconds. For more information, see Second delay. You can use second-delay scheduling to trigger jobs at a second granularity.
  • Calendar scheduling: SchedulerX provides multiple types of calendars for you to schedule jobs. You can also import custom calendars. Calendar scheduling is suitable for financial transactions. For example, you can use calendar scheduling if you want to trigger jobs on each trading day.
  • Time zone scheduling: Time zone scheduling is suitable for cross-border business. You can use time zone scheduling if you want to trigger jobs in the time zone of a specific country.

For more information about how to create a periodic job, see Create a job.

Orchestrate jobs

You can drag and drop jobs in a directed acyclic graph (DAG) to create a workflow. If a job in a workflow fails, the downstream jobs are not triggered. You can view the status of jobs and identify failed jobs in the DAG. For more information, see Create a workflow.

Supported types of jobs

SchedulerX allows you to schedule jobs that use different programming languages. SchedulerX also allows you to use workflows to orchestrate jobs that use different programming languages.

  • Java: You can run Java jobs in user processes or dynamically load Java jobs from JAR packages that are uploaded to SchedulerX. For more information, see Java jobs.
  • Shell: You can create Shell jobs in the SchedulerX console. For more information, see Script jobs.
  • Python: You can create Python jobs in the SchedulerX console. To run Python jobs, a Python environment is required. For more information, see Script jobs.
  • Go: You can create Go jobs in the SchedulerX console. To run Go jobs, a Go environment is required. For more information, see Script jobs.
  • HTTP (serverless): You can create serverless HTTP jobs that use the GET or POST method in the SchedulerX console. After you create an HTTP job, the job takes effect immediately. You do not need to configure an agent. For more information, see HTTP tasks.
  • Custom: You can define custom jobs and run the custom jobs by using a plug-in.

Distributed computing

SchedulerX provides easy-to-use distributed programming models that allow you to process a large amount of data on multiple workers in batches.

  • Standalone: This model selects a random worker to run a job. For more information, see Standalone.
  • Broadcast: This model concurrently runs a job on all workers and waits until all workers complete the job. For more information, see Broadcast.
  • Map: This model uses a map method that is similar to the map method in Hadoop MapReduce. The map method allows you to process a large amount of data on multiple workers by using simple command lines. For more information, see Visual MapReduce model.
  • MapReduce: This model is an extension of the Map model. The MapReduce model deprecates the postProcess method and provides the Reduce interface. After a worker completes all tasks of a job, you can call the Reduce method to return the execution result of the job instance or pass the result to another job. For more information, see MapReduce model.
  • Sharding: This model is similar to the Elastic-Job model. You can configure sharding parameters in the SchedulerX console to evenly distribute shards to multiple agents. The sharding model supports multiple programming languages. For more information, see Sharding models for different programming languages.

Manage resources and job priorities

SchedulerX allows you to control the maximum number of concurrent jobs for an application. You can configure job priorities to manage jobs in a similar way in which you use Yarn queues. If the number of concurrent jobs exceeds the upper limit, the additional jobs must wait in a queue. Jobs with higher priorities can preempt jobs with lower priorities.

Resource management based on applications and job priorities are commonly used in different scenarios. For example, to collect reports on a daily basis, a data platform may need to run thousands of jobs at night. If you do not perform resource management, the data platform may run all of the jobs at the same time. As a result, the application may become unavailable. In addition, the data platform must generate reports before 9:00 each time. This requires you to trigger jobs with higher priorities based on resource management. Even if jobs with lower priorities enter the queue, jobs with higher priorities can preempt these jobs.

O&M capabilities

  • View dashboards: You can view execution record dashboards and the execution list in the SchedulerX console. You can also view the history of each job and perform specific operations.
  • View logs: Each time the system triggers a job, the system generates an operational log. You can view the operational log on the details page of the job in the SchedulerX console. If the system fails to trigger a job, you can check the error log to troubleshoot the issue. For more information, see View job instance details.
  • Rerun failed jobs: If a job fails, you can modify the code of the job, republish the job, and then immediately rerun the job.
  • Mark jobs as completed: To handle a failed job, you need to calibrate the data in the backend and spend a few hours to rerun the job. If you want to skip the job, you can mark the job as completed.
  • Terminate jobs: You can implement the kill() interface of the JobProcessor to terminate jobs or tasks in the SchedulerX console.

Process time series data

SchedulerX allows you to process dynamic data. You can configure a time offset for a job to process data that is updated at a point in time different from the time when the job is triggered. For example, a job is triggered at 00:30 every day. If you want to use the job to process data that was updated at 23:30 on the previous day, you must set the time offset of the job to 1 hour. The job is still triggered at 00:30. After the job is triggered, the job uses the context.getDataTime() method to retrieve the data that was updated at 23:30 on the previous day.

Update job outputs

You may want to update the output of a job that processes time series data. For example, you created a workflow that is used to generate a business report. However, you want to add a field to the report or the data within the previous month contains errors. To resolve this issue, you want to trigger the job to reprocess the data within the previous month. SchedulerX allows you to update the outputs of jobs or workflows. The interval of the data points that you want to update must be one day. Different job instances may process data that is generated at different points in time. For more information, see Update job outputs.

Automatically rerun failed jobs

  • Automatically rerun failed job instances: You can specify the maximum number of attempts to rerun a failed job instance and set the interval in the advanced settings of a job. For example, you can configure the system to rerun a failed job instance up to three times at an interval of 30 seconds. If the system fails to rerun the job instance after three attempts, the system changes the state of the job instance to Failed and generates an alert.
  • Automatically rerun failed tasks: For distributed jobs that use the parallel computing, memory grid, or grid computing mode, you can rerun the tasks of these jobs if the tasks fail. You can specify the maximum number of attempts to rerun failed tasks and set the interval in the advanced settings of the corresponding job.

Monitoring and alerts

  • Alerts that are generated if jobs fail.
  • Alerts that are generated if jobs time out.
  • Alerts that are generated if no workers are available.
  • Alerting method: text messages.