[go: up one dir, main page]

Skip to content
/ celery Public
forked from CuriousLLC/celery

Go client library for calling Celery tasks

Notifications You must be signed in to change notification settings

rday/celery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

celery

Golang client library for calling Celery tasks - http://www.celeryproject.org

It currently support AMQP brokers and depends on http://github.com/streadway/amqp

GoDoc

Usage

Installation: go get github.com/bsphere/celery

Use http://github.com/streadway/amqp and open a connection and get a channel.

import (
	"github.com/bsphere/celery"
	"github.com/streadway/amqp"

func main() {
	conn, err := amqp.Dial("amqp://guest@localhost://")
	if err != nil {
		panic(err)
	}

	defer conn.Close()

	ch, err := conn.Channel()
	if err != nil {
		panic(err)
	}

	task, err := celery.NewTask("tasks.test", []string{}, nil)
	if err != nil {
		panic(err)
	}

	err = task.Publish(ch, "", "celery")
}

About

Go client library for calling Celery tasks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%