cron VS gocron

Compare cron vs gocron and see what are their differences.

gocron

Easy and fluent Go cron scheduling. This is a fork from https://github.com/jasonlvhit/gocron (by go-co-op)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
cron gocron
19 12
12,446 4,882
- 4.7%
0.0 8.3
about 2 months ago 11 days ago
Go Go
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

cron

Posts with mentions or reviews of cron. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-29.
  • Slack Bot Framework
    2 projects | /r/golang | 29 Jun 2023
    Features - Supports Slack Apps using Socket Mode - Easy definitions of commands and their input - Built-in help command - Bot responds to mentions and direct messages - Simple parsing of String, Integer, Float and Boolean parameters - Customizable, intuitive and with many examples to follow - Replies can be new messages or in threads - Replies can be ephemeral, scheduled, updated or deleted - Supports Slash Commands and Interactive Messages - Supports context.Context - Supports middlewares & grouping of commands - Supports Cron Jobs using https://github.com/robfig/cron - Handlers run concurrently via goroutines - Full access to the Slack API github.com/slack-go/slack
  • How to run periodic tasks?
    3 projects | /r/golang | 7 Apr 2023
    You could this https://github.com/robfig/cron
  • is there an open library for validating cron job expression?
    3 projects | /r/golang | 30 Nov 2022
    This will print "Valid cron expression: */20 * * * *" to the console. You can find more information about this library, including installation instructions, on its GitHub page: https://github.com/robfig/cron
  • How to do distributed cronjobs with worker queues?
    8 projects | /r/golang | 12 Nov 2022
    I had a similar design challenge recently and I haven’t worked it out completely yet. But I needed to dynamically create CronJob a based on a request and run each job in a go routine. I landed on https://github.com/robfig/cron which supports that behavior and removing jobs as well. I see this as being similar to your need since each scheduled cron entry via this library is sorta like having a queue with each having their own possible schedule. But I suppose it’s totally different from what you’re looking for. Curious to watch replies here.
    8 projects | /r/golang | 12 Nov 2022
    I used robfig/cron on each of the workers. I only had on the order of ~10 workers so polling was not an issue.
  • Golang in Action: How to quickly implement a minimal task scheduling system
    4 projects | dev.to | 2 Oct 2022
    Now let's implement the core of task scheduler, cron job. We will be using robfig/cron, a reputable cron library written in Go.
  • Best task runner/cronjob library
    2 projects | /r/golang | 3 Sep 2022
    I suggest this library.
  • Cron for .NET 5.0+
    2 projects | /r/dotnet | 4 May 2022
    Hi there! I am developing some service that manages every day and every hour background tasks. I know about HostedService and 'manual' task planning with Task.delay, but i'm in search of good 'boxed' solution like Hangfire or Quartz but smaller. I also write in Golang and go devs have cron impl by robfig (github.com/robfig/cron). Do we have something like it for .NET 5.0? Thanks everyone!
  • Distributed asynchronous tasks?
    4 projects | /r/golang | 12 Jan 2022
    time.Ticker or https://github.com/robfig/cron
  • A minimalist and zero-dependency scheduling/cron library for Go
    2 projects | /r/golang | 22 Sep 2021
    Looks good, I wonder how it compares to https://github.com/robfig/cron?

gocron

Posts with mentions or reviews of gocron. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-25.

What are some alternatives?

When comparing cron and gocron you can also consider the following projects:

Faktory - Language-agnostic persistent background job server

go-quartz - Minimalist and zero-dependency scheduling library for Go

gocron - A Golang Job Scheduling Package.

cronticker - Golang ticker that works with Cron scheduling.

tasks - Package tasks is an easy to use in-process scheduler for recurring tasks in Go

gronx - Lightweight, fast and dependency-free Cron expression parser (due checker, next/prev due date finder), task runner, job scheduler and/or daemon for Golang (tested on v1.13+) and standalone usage. If you are bold, use it to replace crontab entirely.

leprechaun - You had one job, or more then one, which can be done in steps

sched - A job scheduler for Go with the ability to fast-forward time.

chrono - Chrono is a scheduler library that lets you run your task and code periodically

redis-cron - A cron library for go, support redis to execute only one same job in multi instances.

cheek - cheek: a pico-sized declarative job scheduler