Taskhawk is a replacement for celery that works on AWS SQS/SNS and Google Pub/Sub, while keeping things pretty simple and straight forward.
This module provides a custom Terraform module for deploying Taskhawk infrastructure for Taskhawk Queue based app.
module "taskhawk-dev-myapp" {
source = "standard-ai/taskhawk-queue/google"
queue = "dev-myapp"
alerting = true
labels = {
app = "myapp"
env = "dev"
}
}
It's recommended that queue
include your environment.
Naming convention - lowercase alphanumeric and dashes only.
Please note Google's restrictions (if not followed, errors may be confusing and often totally wrong):
The Google topic and subscription names will be prefixed by taskhawk-
.
Google limits the lifecycle of a subscription. By default, if a subscription has not received any messages in 31 days, it'll be deleted. Terraform currently does not support overriding this behavior.
Go to Terraform Registry, and Resync module.