Task scheduling with XXL-JOB

Updated at:
Copy as MD

These guides cover common operational tasks for XXL-JOB on Alibaba Cloud, including migration, monitoring, throttling, calendar-based scheduling, graceful shutdown, and AI-powered analytics.

Best practices

  • Migrate a self-managed XXL-JOB to the Alibaba Cloud task scheduling platform — Move your existing open source XXL-JOB to a fully managed setup on Alibaba Cloud.

  • Perform grayscale scheduling using tag-based routing — Route tasks to specific Executors to validate changes in a controlled subset before a full rollout.

  • View operation records — Audit console and OpenAPI actions using ActionTrail.

  • Throttle task scheduling — Prevent excessive resource consumption by setting task-level or application-level throttling limits.

  • Import a custom calendar — Schedule tasks around workdays, financial trading days, or business events such as sales promotions.

  • Configure monitoring and alerts — Get notified about task execution issues at both the task and instance cluster level.

  • Achieve graceful shutdown using MSE XXL-JOB — Restart services without interrupting running tasks.

  • Push hot news and perform financial data analytics using XXL-JOB and DeepSeek — Automate financial news delivery and data analytics by combining XXL-JOB with the DeepSeek large language model (LLM).

    Migrate a self-managed XXL-JOB to the Alibaba Cloud task scheduling platform

    To move a self-managed XXL-JOB to a fully managed setup, migrate to the Alibaba Cloud task scheduling platform. Use the export tool to extract task configurations from your open source XXL-JOB instance, import them into your Alibaba Cloud XXL-JOB instance, and redeploy your application to connect to the Alibaba Cloud platform. For more information, see Migrate a self-managed XXL-JOB to the Alibaba Cloud task scheduling platform.

    Perform grayscale scheduling using tag-based routing

    To validate task changes in a controlled subset of your infrastructure before a full rollout, use tag-based routing. Specify tags to determine which Executor runs each task, enabling grayscale scheduling. For more information, see How to perform grayscale scheduling for tasks using tag-based routing.

    View operation records

    To audit actions taken from the console or via OpenAPI, use ActionTrail. Log on to the ActionTrail console and filter by SchedulerX3 in the Service Name field to retrieve all operation records. For more information, see How to view operation records.

    Throttle task scheduling

    To prevent excessive system load from too many concurrent tasks, configure task-level or application-level throttling. Throttling lets you allocate system resources efficiently and protect downstream services from overload. For more information, see How to throttle task scheduling.

    Import a custom calendar

    To run tasks only on workdays, financial trading days, or pause them during events such as sales promotions, use a custom calendar. Define the dates on which scheduled tasks should run to match your business requirements. For more information, see How to import a custom calendar.

    Configure monitoring and alerts

    To stay informed about task execution status and resolve issues quickly, configure monitoring and alerts at the task and instance cluster level. Alerts notify you during task runtime so you can detect and respond to problems before they escalate. For more information, see How to configure monitoring and alerts.

    Achieve graceful shutdown using MSE XXL-JOB

    To restart services without interrupting in-progress tasks, use the graceful shutdown feature. MSE XXL-JOB's graceful shutdown is compatible with the open source version, so no changes to your existing configuration are required. For specific scenarios and steps, see Achieve graceful shutdown using MSE XXL-JOB.

    Push hot news and perform financial data analytics using XXL-JOB and DeepSeek

    To automate financial news delivery and data analytics, integrate XXL-JOB with the DeepSeek large language model (LLM). For more information, see Push hot news and perform financial data analytics using XXL-JOB and DeepSeek.