Cron Scheduled Tasks

Lamb has an scheduled task endpoint that can be called periodically to run tasks in the background, available at /_cron.

(Looking to publish a post at a future date instead? See Scheduling.)

The following tasks run periodically:

  1. Purging trash. Posts in the trash are permanently deleted once they have been there for 30 days.
  2. Crossposting. New content from your configured feeds is ingested as posts.
  3. Sending webmentions. Any pending outbound webmentions for your posts are delivered.

Note that the feed system has its own rate limiting system to prevent sending too many requests to the feed provider, so checking more often than every 30 minutes or so is not typically useful.

How-to

It’s your responsibility to call the endpoint periodically. If you don’t have a server, you could setup a website monitor, a local scheduled task, maybe even IFTTT or Zapier. Be creative!

For example the linux cron system can be setup as follows:

# Schedule taks every 30 minutes
*/30 * * * * /usr/bin/curl -s https://example.com/_cron > /dev/null 2>&1
  • Cross-posting: Feed syndication that runs via the cron endpoint.
  • Trash: Trashed posts are purged after 30 days by the cron.
  • Webmentions: Outbound webmentions are sent during the cron run.
  • Drafts: Feed-ingested posts are saved as drafts by default.
  • Scheduling: Publishing a post at a future date (a different feature, despite the similar name).

This site uses Just the Docs, a documentation theme for Jekyll.