manage-async

Manage asynchronous execution and scheduled jobs in Apache OFBiz.

175|216|Updated Mar 5, 2017
One-click install
npx skills add https://github.com/apache/ofbiz-plugins --skill manage-async
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-async
Source: https://github.com/apache/ofbiz-plugins/tree/main/ai-agent-skills/manage-async
Command: npx skills add https://github.com/apache/ofbiz-plugins --skill manage-async

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers and administrators understand and correctly manage asynchronous operations, scheduled jobs, and the JobSandbox in Apache OFBiz to prevent system instability and resource exhaustion.

Core Features & Use Cases

  • Clarifies Async Behavior: Differentiates between "concurrent" and "later" execution, highlighting transaction boundaries.
  • Guides High-Volume Tasks: Advises on best practices for large data imports and batch processing, recommending synchronous batching over excessive async calls.
  • Prevents JobSandbox Explosions: Warns against creating massive numbers of persisted async jobs that can bottleneck the system.
  • Use Case: When deciding whether a critical nightly data synchronization service should run synchronously or asynchronously, this skill provides the decision-making framework to avoid potential deadlocks or performance degradation.

Quick Start

Use the manage-async skill to determine if a new service should be configured with mode="async".

Frequently Asked Questions about manage-async

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does asynchronous execution in OFBiz affect transaction boundaries?

Asynchronous execution in OFBiz separates transaction boundaries by deferring operations. It differentiates between concurrent execution and later execution, ensuring background tasks do not interfere with the main transaction's commit or rollback processes.

What is the best way to handle high-volume data imports in OFBiz without destabilizing the system?

For high-volume data imports in OFBiz, synchronous batching is recommended over excessive async calls. This approach prevents system instability and resource exhaustion by avoiding the creation of massive numbers of persisted async jobs.

Why does creating too many persisted jobs in the OFBiz JobSandbox cause performance degradation?

Creating massive numbers of persisted jobs in the OFBiz JobSandbox bottlenecks the system. This accumulation causes performance degradation and resource exhaustion because the system struggles to manage the high volume of background tasks.

How do I decide whether a critical nightly data synchronization service should run synchronously or asynchronously?

To decide between synchronous and asynchronous execution for nightly data synchronization in OFBiz, evaluate transaction boundaries and potential deadlocks. Use the decision-making framework to avoid deadlocks and performance degradation based on service invocation modes.

Can I use async job scheduling in OFBiz for batch processing without causing system bottlenecks?

Using async job scheduling in OFBiz for batch processing risks system bottlenecks if it creates excessive persisted jobs. To prevent system instability, synchronous batching is advised instead of scheduling high-volume background tasks asynchronously.

When should I avoid using mode="async" for service invocation in OFBiz?

Avoid using mode="async" for service invocation in OFBiz when processing large data imports or batch tasks. Excessive asynchronous calls create massive persisted jobs that bottleneck the JobSandbox and exhaust system resources.