meteor-celery-client
v0.0.6
Published
wrapper node-celery for meteor
Downloads
4
Readme
wrapper node-celery for meteor
Test
pre installed
- docker
- python 2.7+
- meteor 1.4.2+
install
meteor npm i
run test
meteor npm test
Document
const celeryClient = new CeleryClient();
// connect
celeryClient.connect({
CELERY_BROKER_URL: 'amqp://guest@localhost:5672//',
CELERY_RESULT_BACKEND: 'amqp'
});
// call
const result = celeryClient.call('celery-test.echo', ['Hello']);
chai.expect(result.result).to.be.equal('Hello');