funboost-timing-jobs

Schedules funboost tasks with cron, interval, and date triggers via ApsJobAdder.

892|166|Updated Dec 25, 2021
One-click install
npx skills add https://github.com/ydf0509/funboost --skill funboost-timing-jobs-ydf0509
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: funboost-timing-jobs
Source: https://github.com/ydf0509/funboost/tree/main/.agents/skills/funboost-timing-jobs
Command: npx skills add https://github.com/ydf0509/funboost --skill funboost-timing-jobs-ydf0509

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires funboost, apscheduler.

What problem does it solve? Scheduling funboost tasks incorrectly with raw APScheduler calls bypasses the message queue entirely, executing functions directly in the scheduler process and losing all distributed, retry, and concurrency benefits. This Skill provides the correct patterns for publishing timed messages into funboost queues using ApsJobAdder. ## Core Features & Use Cases - Interval Scheduling: Run tasks every N seconds, minutes, or hours using the interval trigger. - Cron Scheduling: Execute tasks at specific times such as daily at 2:00 AM using cron expressions. - One-Time and Distributed Jobs: Run a task once at a specific datetime, or persist schedules in Redis so jobs survive restarts and only one instance fires in multi-node deployments. - Use Case: You need to clean up expired session data every 30 seconds across a distributed backend. Use ApsJobAdder with an interval trigger to push messages into the queue while consumers process them with full ACK and retry guarantees. ## Quick Start Ask the AI to create a funboost scheduled task that pushes a message to a queue every 30 seconds using ApsJobAdder with an interval trigger.

Frequently Asked Questions about funboost-timing-jobs

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

FAQPage Schema
How do I schedule a funboost task to run periodically?▼

Use ApsJobAdder with the add_push_job method and an interval trigger, passing seconds, minutes, or hours. Pass task arguments through the kwargs or args parameters, and start the consumer separately with func.consume().

How to run a cron job with funboost and APScheduler?▼

Call ApsJobAdder(booster).add_push_job with trigger set to cron and parameters like hour, minute, or day_of_week. This pushes a message into the queue at the scheduled time rather than executing the function directly.

Why should I not use apscheduler add_job directly with funboost?▼

Calling apscheduler.add_job on a funboost task executes the function inside the scheduler process, completely bypassing the message queue. ApsJobAdder instead calls push at trigger time, preserving distribution, ACK, retry, and concurrency features.

Does funboost scheduling persist jobs across restarts?▼

Yes, when ApsJobAdder is created with job_store_kind set to redis, schedules are persisted in Redis and survive process restarts. The default memory job store loses all jobs on restart.

Why is my scheduled funboost task not executing?▼

ApsJobAdder only publishes messages on schedule; you must also start the consumer with func.consume(). Also verify the first argument is a @boost-decorated function and that Redis connection settings are configured when using the redis job store.