workers

Manage background processing and event-driven tasks in FacturaScripts with PHP.

7|2|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/FacturaScripts/fs-claude-plugin --skill workers-facturascripts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workers
Source: https://github.com/FacturaScripts/fs-claude-plugin/tree/main/fs-dev/skills/workers
Command: npx skills add https://github.com/FacturaScripts/fs-claude-plugin --skill workers-facturascripts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the execution of background tasks and event-driven processes in FacturaScripts, enhancing efficiency and scalability.

Core Features & Use Cases

  • Background Processing: Execute non-critical tasks asynchronously, improving page load times and system responsiveness.
  • Event-Driven Architecture: Respond to changes in data with predefined actions, reducing manual intervention and errors.
  • Use Case: Automate the updating of counters, sending notifications, and data synchronization after each page execution.

Quick Start

Generate a new worker class and register it to listen for the 'Model.Producto.Update' event to process product updates in the background.

Frequently Asked Questions about workers

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

FAQPage Schema
How do I run background processing tasks in FacturaScripts?

Background processing in FacturaScripts is handled by creating a worker class that executes non-critical tasks asynchronously, which improves page load times and system responsiveness.

How does event-driven architecture work in an ERP?

Event-driven architecture in an ERP responds to data changes by triggering predefined actions automatically, reducing manual intervention and errors during tasks like data synchronization.

What's the best way to automate notifications after a page execution in FacturaScripts?

Automating notifications after page execution in FacturaScripts involves registering a worker class to listen for specific model update events, enabling asynchronous task execution.

Do I need PHP to set up event-driven workers in FacturaScripts?

Yes, setting up event-driven workers in FacturaScripts requires PHP and the FacturaScripts framework to generate the worker classes and integrate with the ERP's event system.

Can I use FacturaScripts workers for asynchronous data synchronization?

FacturaScripts workers support asynchronous data synchronization by handling non-critical processes in the background, allowing data updates to occur without blocking page execution.

When should I not use background processing for FacturaScripts tasks?

Background processing in FacturaScripts should not be used for critical tasks requiring immediate execution, as it is designed for non-critical asynchronous processes to avoid blocking page loads.