PROVIDER - Distributed Scheduling & Computing

PowerJob

PowerJob separates a scheduling server from execution workers and adds MapReduce shard computing and DAG workflows to cron jobs; Apache-2.0 licensed, self-hosted without licence fees.

Automation China 2026.11.30 1 views
3.6pts
Advertisement

Service Overview

PowerJob is a distributed scheduling and computing framework: the scheduling server registers jobs, triggers them and tracks state, while workers inside business applications execute the work over the network. Beyond cron and fixed-rate schedules, it offers MapReduce processors that split a job into shards, run them in parallel and aggregate the results, so batch computing and scheduling share one system.

The project is Apache-2.0 with roughly 7,800 stars, currently on the 5.1.x line released in October 2026, implemented in Java. The open-source edition covers the console, worker integration, workflows and MapReduce, fitting teams that want scheduling and shard computing in their own environment.

Key Strengths

  • Server and worker are separate processes, so execution does not compete with scheduling and each side scales alone.
  • Fixed-delay and daily-fixed-time schedules join cron and fixed rate, covering uneven intervals.
  • MapReduce processors split jobs into shards that run in parallel and aggregate in the reduce stage.
  • Task types span built-in Java, SpringBean, shell, Python, HTTP and containers under one console.
  • DAG workflows pass parameters between nodes and run in dependency order, all under Apache-2.0.

Limitations

  • The ecosystem and documentation are smaller than comparable schedulers, with fewer English resources.
  • Releases move quickly, so major upgrades require checking schema and settings in a test environment.
  • Sharding type decisions and aggregation remain business logic; the framework only supplies the skeleton.
  • Multi-tenancy and fine-grained permissions are not a mature feature, so sharing needs naming rules.
  • Metrics must feed an external monitoring stack, as the platform focuses on task state and logs.

Product Ecosystem

Scheduling and computing split: server triggers, workers run, shards aggregate Scheduling server registration, triggers, state Worker inside the business application Processor executes, optionally in shards Map stage each shard handles its data range Reduce stage aggregates and persists results Workflow chains nodes by DAG dependencies Schedule types: CRON · fixed rate · fixed delay · daily fixed time · OpenAPI trigger Server and workers talk over the network; shard counts and aggregation live in task config and code (scope: official docs, 2026-11) Current line 5.1.x, implemented in Java, Apache-2.0 licence
Figure 1: Scheduling server, workers and MapReduce shards (scope: official documentation, 2026-11)

PowerJob separates scheduling from computing: the server registers, triggers and tracks state, while workers deploy beside applications and run processors. For sharded jobs the server hands out shard parameters, map stages process their ranges and the reduce stage aggregates.

Schedule types and triggers

Jobs support cron expressions, fixed rate, fixed delay and a daily fixed time, and can also be triggered through the OpenAPI or chained from an upstream job. Timeouts, retries and alert recipients are configured at registration, with instances listed in the console.

Task types and processors

Built-in Java processors run inside the worker, SpringBean processors reuse existing beans, shell, Python and HTTP processors cover scripts and API calls, and container processors package the runtime as an image. Processors implement one execution interface and return results and logs to the server.

MapReduce shard computing

A MapReduce job splits work into sub-tasks dispatched by shard index to different workers, then aggregates in the reduce stage. It fits table scans, reconciliation and offline repair that benefit from parallelism, while shard logic and aggregation stay in business code.

Workflows and dependencies

Workflows chain task nodes in a DAG, passing parameters and respecting dependency order, with configurable behaviour when an upstream node fails. They suit extract, clean and summarise steps that previously relied on timing gaps between independent jobs.

Integration and operations

Workers attach to Spring applications through an SDK and receive jobs after registering; the server scales across instances and stores state in a relational database. Troubleshooting starts with instance state and worker connectivity, and callback issues follow the checks in webhook signature verification.

Use Cases

  • Good fit|Large scanned batches: MapReduce sharding shortens runtime by splitting work across workers.
  • Good fit|Java application scheduling: SpringBean processors reuse services with minimal changes.
  • Good fit|Uneven intervals: fixed delay and daily fixed time cover cases cron handles awkwardly.
  • Good fit|Script and API operations: shell, Python and HTTP processors run without new services.
  • Evaluate|Mature multi-tenant governance needs: tenancy and fine-grained permissions must be designed.
  • Evaluate|Teams without Java operations: server and worker deployment plus upgrades take effort.
  • Evaluate|Full observability suites: metrics must be wired into an external monitoring stack.

Open Source License & Deployment Cost

Two dimensions define a job: how it triggers and what executes it Schedule types CRON expression: calendar based fixed rate: repeat on an interval fixed delay: wait after the last run daily fixed time: once per day also triggered by OpenAPI or an upstream job Execution types built-in Java and SpringBean shell and Python scripts HTTP calls containerised runtime MapReduce jobs add shards and aggregation Licence: Apache-2.0, free to self-host, with no cap on jobs or workers Cost items: server hosts and database, application servers hosting workers, operations effort (scope: official documentation and repository licence, 2026-11)
Figure 2: Schedule and execution type combination (scope: official documentation, 2026-11)

There is no licence fee, so budget covers hosts and people: two server instances are typical, the database may be shared, and workers ship with applications.

Item Billing Size and volume Notes
Software licence free unlimited jobs and workers Apache-2.0, commercial use and modification allowed, notices kept on redistribution
Server hosts billed by your cloud or colocation two instances in production, sized by trigger frequency and logs instances share a database and need aligned clocks to avoid duplicate triggers
Database reuse an existing instance or provision one relational database sized by job instances and log retention job config, instance state and workflow definitions live here
Worker resources scales with applications memory and threads sized by shard parallelism and data volume MapReduce parallelism multiplies per-host resource usage
Operations effort internal team time deployment, upgrades, log purging, alert upkeep releases move quickly, so validate schema changes in a test environment
Observability usually reuses existing monitoring metrics and logs feed the current stack the platform focuses on job state, so dashboards are built separately

FAQ

  • How does it compare with XXL-JOB? XXL-JOB is lighter, covering regular scheduled work with an admin plus executors and a larger community. PowerJob adds MapReduce shard computing and workflows, which suits teams that need both scheduling and batch computing, at the cost of more concepts and heavier deployment.
  • Which jobs suit MapReduce? Jobs with large volumes that can split by key or time, such as full table scans, bulk reconciliation and historical repair. Shards run in parallel and aggregation combines results; for small jobs the scheduling overhead of sharding outweighs the gain.
  • How much code changes for a worker? Built-in Java and SpringBean processors only implement the execution interface and add annotations, while script tasks are registered in the console. The work sits in turning scheduled logic into stateless executors and adding idempotency keys so retries do not rewrite data.
  • What should upgrades watch for? Releases move fast, so read the notes and check schema changes before crossing versions, then run migration scripts in a test environment. Avoid bulk submissions during the upgrade, and keep server and worker versions compatible or jobs fail on protocol mismatch.
  • Can it coexist with existing cron jobs? Yes. Register new jobs on the platform while old jobs stay where they are, keeping their time windows apart. Retire the old timers once run records and alerts are steady, so a one-shot switch does not drop triggers.

Integration & Code Examples

Implement a basic processor and register it in a worker

import org.springframework.stereotype.Component;
import tech.powerjob.worker.core.processor.ProcessResult;
import tech.powerjob.worker.core.processor.TaskContext;
import tech.powerjob.worker.core.processor.sdk.BasicProcessor;

@Component
public class OrderSyncProcessor implements BasicProcessor {

    @Override
    public ProcessResult process(TaskContext context) {
        // job parameters come from the console and can select a date batch
        String jobParams = context.getJobParams();
        context.getOmsLogger().info("order sync start, params={}", jobParams);

        try {
            int rows = syncOrders(jobParams);
            return new ProcessResult(true, "synced rows: " + rows);
        } catch (Exception e) {
            context.getOmsLogger().error("order sync failed", e);
            return new ProcessResult(false, e.getMessage());
        }
    }

    private int syncOrders(String params) {
        return 0;
    }
}

Worker configuration and a manual trigger

# attach to the scheduling server with an application name and port
powerjob.worker.app-name=order-service
powerjob.worker.server-address=192.168.1.10:7700,192.168.1.11:7700
powerjob.worker.port=27777
# trigger a job once through the OpenAPI with instance parameters
curl -X POST "http://192.168.1.10:7700/openApi/runJob" \
  -H "Content-Type: application/json" \
  -d '{"appId":1,"jobId":12,"instanceParams":"{\"date\":\"2026-11-30\"}"}'

The application name must match the console registration, and parameters need JSON escaping to avoid parse failures.

Community & Resources

Visit PowerJob Website → https://www.powerjob.tech/
Visit Website ↗