2019

Updated at:

This topic describes new features, optimizations, critical bug fixes, and related documentation for SchedulerX released in 2019.

Client Release Notes

1.1.0, December 17, 2019

Change type

Description

References

Optimization

Fixed an issue by upgrading the default log4j2 dependency to version 2.15.0.

None

Change type

Description

References

New feature

  • Added support for a multi-language sharding model (similar to elastic-job): SchedulerX 2.0 supports a multi-language sharding model.

  • OpenAPI now returns an AppKey when creating a group.

  • Supported rerunning tasks in successful states. In workflows, task instances can rerun themselves and their downstream tasks.

None

Optimization

  • Improved server-side performance by changing synchronous client communication to asynchronous communication and optimizing the default akka dispatcher configuration.

  • Heartbeat performance improved threefold with the 1.1.0 client.

  • Redesigned the frontend task management list to show more information.

  • Fixed an issue where global subtasks did not work in distributed pull models.

  • Fixed an issue where startup failed in isolation unit environments if Domain was not configured.

None

1.0.9, November 28, 2019

Change type

Description

References

New feature

  • Added the BlockAppStart configuration. This controls whether SchedulerX blocks application startup on initialization failure. Default value: true.

  • Added an API to query workflow execution status: GetWorkflowInstanceRequest.

  • Added the jobName field to the JobContext. Users can now retrieve the job name during execution.

None

Optimization

  • During Hessian deserialization, the BigDecimal value is deserialized as 0.

  • Deserializing a LocalDateTime object with Hessian throws an error.

  • Fixed an issue with the specified-machine feature. Subtasks were assigned to unspecified machines after jobs ran longer than a certain time.

  • The client reports an abnormal condition from springContext.getBean: AnnotationConfigApplicationContext has not been refreshed yet.

  • Fixed an issue where incorrect job implementation class configurations triggered Spring Boot’s ServletWebServer shutdown logic, stopping web services while the business process continued running.

  • Fixed an issue where tasks hung when the system startup variable user.dir='/' was set.

  • The client call to springContext.getBean throws an AnnotationConfigApplicationContext has been closed already exception.

  • In rare cases, the workerId generated by the client may be a duplicate, causing tasks to be triggered on machines that do not belong to the current application.

  • Spring applications cannot customize the class loader.

  • The broadcast execution counter for second-level tasks displays incorrect values.

  • Fixed an issue where jobContext.getScheduleTime did not update per iteration for second-level tasks.

None

1.0.8, August 6, 2019

Change type

Description

References

New feature

  • [Important] Refactored the JobProcessor.postProcess interface to return a ProcessResult. Code using the previous postProcess interface must be updated.

  • Enhanced broadcast execution. BroadcastJobProcessor now supports preProcess and postProcess. preProcess runs once before process executes on all machines. postProcess runs once after process completes on all machines.

  • JobContext.getTaskAttempt now returns the current subtask retry count.

  • The client supports custom listening ports, such as SchedulerxWorker.setPort.

  • Java jobs can implement JobProcessor directly without inheriting JavaProcessor.

None

Optimization

  • Fixed a bug where subtasks with TaskId=1 did not support automatic subtask retries.

  • For distributed tasks, root task failure reasons were not visible.

  • Subtask lists for parallel tasks did not support subtask retries.

None

1.0.6-compatible, July 2, 2019

Change type

Description

References

Optimization

A compatibility release for schedulerx1.0 (DTS) interfaces. You cannot depend on both schedulerx-client and schedulerx-worker. Depend only on schedulerx-worker. Migrate all DTS jobs to SchedulerX 2.0.

None

1.0.6, July 2, 2019

Note

The console displays version 1.0.4 for this release, which differs from the Maven version number.

Change type

Description

References

New feature

  • Added shading for these packages: aliyun-log, commons-validator, gson, fastjson, guava, commons-collections.

  • Frontend logs now display errorMsg when you return ProcessResult(false, errorMsg).

Optimization

  • Improved at-least-once-delivery performance.

  • In high-load scenarios, duplicate message delivery caused second-level tasks to hang or application threads to be interrupted.

None

Optimization

  • The broadcast task stops responding.

  • Sub-second jobs become stuck.

  • The at-least-once-delivery setting may cause a subtask to enter an infinite retry loop.

  • Now throws exceptions and fails startup if logcollector initialization fails.

  • Workflows cannot resume scheduling after their task instances are cleared from the DB.

  • Spring-based startup does not support kill commands.

None

1.0.3, June 6, 2019

Change type

Description

References

New feature

  • MapReduce model now supports returning results from all subtasks for processing by Reduce.

  • Distributed model now supports a pull model to resolve bottlenecks caused by single-machine performance limits and enable dynamic scale-out for pulling subtasks.

  • Pull model supports global subtask concurrency for rate limiting.

  • Added wfInstanceId to JobContext.

  • Clients now throw exceptions and block JVM startup on initialization failure to detect issues early.

  • Clients now print Maven dependency JAR versions and paths at startup to help troubleshoot JAR conflicts.

  • Distributed model subtask details now include queue dimensions, showing the subtask queue cached on each machine.

None

Optimization

  • Workers incorrectly quarantined due to high server load now recover automatically without restarting the client.

  • Distributed model subtask details now accurately show the number of subtasks running on each machine while in progress.

  • If a master node fails, the server cleans up slave node resources to prevent memory leaks.

None

1.0.0, April 30, 2019

Change type

Description

References

New feature

  • Supports periodic scheduling using crontab and fixed_rate expressions.

  • Supports workflow scheduling for flow orchestration.

  • Supports second-level scheduling using second_delay expressions.

  • Supports Java, Shell, Python, and Go job types.

  • Supports single-machine execution, broadcast execution, parallel computing, in-memory grids, and grid computing.

  • Supports Map and MapReduce distributed programming models.

  • Supports automatic retries at the task instance and subtask levels. Retries are disabled by default.

  • Supports data timestamps and data reprocessing.

None