boxlang-scheduled-tasks

Configure and manage BoxLang scheduled tasks via Scheduler DSL and bx:schedule endpoints.

16|78|Updated Nov 28, 2014
One-click install
npx skills add https://github.com/ortus-docs/coldbox-docs --skill boxlang-scheduled-tasks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: boxlang-scheduled-tasks
Source: https://github.com/ortus-docs/coldbox-docs/tree/main/.agents/skills/boxlang-scheduled-tasks
Command: npx skills add https://github.com/ortus-docs/coldbox-docs --skill boxlang-scheduled-tasks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scheduling BoxLang tasks across in-process and HTTP-driven workflows to ensure reliable, timely execution.

Core Features & Use Cases

  • DSL-based in-process scheduling using BaseScheduler/ScheduledTask with fluent APIs
  • HTTP-driven scheduling via bx:schedule for persistent task endpoints
  • Lifecycle and discovery via application startup/shutdown integration and BIFs

Quick Start

Register a scheduler class in Application.bx, configure tasks, and start it with schedulerStart to enable scheduled workloads.

Frequently Asked Questions about boxlang-scheduled-tasks

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

FAQPage Schema
How do I schedule recurring tasks in BoxLang using a DSL?

BoxLang scheduling uses a DSL via BaseScheduler and ScheduledTask classes with fluent APIs to configure in-process recurring tasks. You register a scheduler class in Application.bx and start it with schedulerStart to enable scheduled workloads.

Can I trigger scheduled tasks over HTTP in BoxLang?

Yes, BoxLang supports HTTP-driven scheduling via bx:schedule endpoints for persistent task execution. This allows you to manage and trigger scheduled workloads remotely across multiple applications using HTTP requests.

Does BoxLang scheduled task management support cron expression syntax?

Yes, BoxLang scheduled task management provides comprehensive cron support for long-running cron-like jobs. The API includes frequency control and cron expression integration to precisely define task execution schedules.

What is the best way to orchestrate scheduled tasks across multiple BoxLang applications?

Orchestrating scheduled tasks across multiple BoxLang applications involves using application descriptor integration and lifecycle BIFs. You configure BaseScheduler during app startup or shutdown and manage runtime task orchestration through the comprehensive scheduling API.

When should I use in-process scheduling versus HTTP-driven scheduling for BoxLang tasks?

Use in-process DSL scheduling for app startup and runtime task orchestration within a single process, while HTTP-driven bx:schedule endpoints suit persistent task endpoints requiring external triggers or cross-application coordination.

Does BoxLang task scheduling work without external dependencies?

Yes, BoxLang task scheduling operates without external dependencies, utilizing built-in BaseScheduler, ScheduledTask, and lifecycle BIFs. It integrates natively with the application descriptor to manage task registration and frequency control internally.