A simple Go library for scheduling tasks with cron-like syntax, from once a second to once a year.
Cron.go is a simple cron library for Go that allows developers to schedule and execute closures or functions at varying intervals. It provides cron-like scheduling capabilities from once per second to once per year on specific dates and times, primarily targeting web applications and long-running daemons.
Go developers building web applications, daemons, or services that require periodic task execution without relying on external cron systems.
It offers a lightweight, pure-Go solution with goroutine-based execution for efficient concurrency, making it easy to integrate scheduled tasks directly into Go applications.
A simple Cron library for go that can execute closures or functions at varying intervals, from once a second to once a year on a specific date and time. Primarily for web applications and long running daemons.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Job comparisons and executions run in separate goroutines, ensuring efficient concurrency without blocking the main application, as highlighted in the README.
Offers straightforward functions like NewWeeklyJob() for common scheduling patterns, making it easy to integrate basic cron functionality with minimal code.
Pure Go implementation with no external system dependencies, reducing bloat and simplifying deployment in lightweight environments.
Supports scheduling from once per second to once per year, providing broad coverage for periodic tasks in web apps and daemons.
No built-in mechanisms for job cancellation, state tracking, or monitoring, which can hinder use in production systems requiring control over scheduled tasks.
The example shows only simple error logging via println; there's no structured error recovery or retry logic, risking silent failures in job executions.
Lacks support for cron expressions, timezone adjustments, or distributed scheduling, making it unsuitable for complex or global applications.