New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

celery-client

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

celery-client

A client for Celery

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

celery-client

NPM version Downloads

A Celery client for node.

Supported Brokers and Backends.

  • Redis

Quick Example:

var celery = require('celery-client');

var broker  = new celery.RedisHandler('redis://:password@localhost:6379/0');
var backend = new celery.RedisHandler('redis://:password@localhost:6379/1');
var celeryClient = new celery.Client(broker, backend);

var args   = [1, 2, 3];
var kwargs = {'key': 'value'};
var taskOptions = {
  eta      : Date.now() + 3000,
  retries  : 3,
  timeLimit: 5,
}
celeryClient.putTask('your-celery-project.task', args, kwargs, taskOptions,
  function(err, taskId) {
    console.log('Task >', taskId);
  },
  function(err, result) {
    console.log('Result >', result);
    process.exit();
  }
);

Task option list

  • id
    • Task ID
  • eta
    • Task ETA
  • expires
    • Task expires
  • retries
    • Task retry times
  • expires
    • Task expires
  • timeLimit
    • Task time limit (in seconds)
  • softTimeLimit
    • Task time limit (soft, in seconds)
  • origin
    • Task sender name
  • priority
    • Task priority (0 ~ 255, 0 is the lowest)
  • queue
    • Target queue

Install:

npm install celery-client

TODO

  • RabbitMQ support

License

MIT

Keywords

FAQs

Package last updated on 07 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc