cron

package module
v0.0.0-...-91e38f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 12 Imported by: 0

README

cron

GoDoc Go Report Card Build Status

A bunch of cron jobs that run on my infra

This is documented on my blog at https://writing.natwelch.com/post/699.

Right now, the following messages are sent to this job at least once during the time period.

{"job": "goodreads"}
{"job": "minute"}
{"job": "pinboard"}
{"job": "random-tweets"}
{"job": "update"}
{"job": "uptime"}
{"job": "user-tweets"}

The following is disabled:

{"job": "spider"}

These can be configured at https://console.cloud.google.com/cloudscheduler?project=icco-cloud

Documentation

Index

Constants

View Source
const (
	// GCPProject is the project this runs in.
	GCPProject = "icco-cloud"

	// Service is the name of this service.
	Service = "cron"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	shared.Config

	Cache *ristretto.Cache
}

Config is our base act config struct.

func (*Config) Act

func (cfg *Config) Act(ctx context.Context, job string) error

Act takes a job and calls a sub project to do work.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL