orchardcore-background-tasks

Automate creation and scheduling of Orchard Core background tasks.

13|3|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/CrestApps/CrestApps.AgentSkills --skill orchardcore-background-tasks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orchardcore-background-tasks
Source: https://github.com/CrestApps/CrestApps.AgentSkills/tree/main/src/CrestApps.AgentSkills.Skills/orchardcore/orchardcore-background-tasks
Command: npx skills add https://github.com/CrestApps/CrestApps.AgentSkills --skill orchardcore-background-tasks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers implement and manage background tasks in Orchard Core, enabling reliable, scheduled work within a tenant context.

Core Features & Use Cases

  • Implement IBackgroundTask and register tasks with AddBackgroundTask<T>().
  • Schedule tasks using cron expressions or TimeSpan-based intervals.
  • Use the BackgroundTask attribute to configure schedule and descriptions; supports common scenarios like content maintenance, data synchronization, and periodic cleanup.

Quick Start

Create a new class that implements IBackgroundTask, annotate it with a BackgroundTask schedule, and register it in Startup via AddBackgroundTask<T>().

Frequently Asked Questions about orchardcore-background-tasks

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

FAQPage Schema
How do I schedule background tasks in Orchard Core using cron expressions?

Schedule Orchard Core background tasks by implementing IBackgroundTask, applying the BackgroundTask attribute with a Schedule property, and registering it via AddBackgroundTask<T>() to enable cron expression or TimeSpan-based task scheduling.

What is the best way to register a periodic background job in an Orchard Core tenant?

Register periodic Orchard Core background jobs using AddBackgroundTask<T>() in Startup, ensuring tenant-scoped processing for tasks like content maintenance, data synchronization, and periodic cleanup.

Do I need to implement IBackgroundTask to run scheduled jobs in Orchard Core?

Yes, implementing IBackgroundTask is required to run scheduled jobs in Orchard Core, combined with the BackgroundTask attribute for schedule configuration and AddBackgroundTask<T>() for service registration.

Can I use the BackgroundTask attribute to configure content maintenance schedules in Orchard Core?

Use the BackgroundTask attribute to configure content maintenance schedules in Orchard Core by defining the Schedule property, supporting common scenarios like data synchronization and periodic cleanup within tenant contexts.

What are the limitations of using IBackgroundTask for tenant-scoped processing in Orchard Core?

IBackgroundTask limitations in Orchard Core include reliance on AddBackgroundTask<T>() registration and attribute-based scheduling, which restricts dynamic schedule modifications for tenant-scoped processing.