All Projects → boylegu → celery-task-tigger

boylegu / celery-task-tigger

Licence: MIT License
A controllable timing task widgets with Celery

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to celery-task-tigger

Ppgo job
PPGo_Job是一款可视化的、多人多权限的、一任务多机执行的定时任务管理系统,采用golang开发,安装方便,资源消耗少,支持大并发,可同时管理多台服务器上的定时任务。
Stars: ✭ 1,152 (+1921.05%)
Mutual labels:  task, crontab
Ects
Elastic Crontab System 简单易用的分布式定时任务管理系统
Stars: ✭ 156 (+173.68%)
Mutual labels:  task, crontab
Node Celery
Celery client for Node.js
Stars: ✭ 648 (+1036.84%)
Mutual labels:  task, celery
Clearly
Clearly see and debug your celery cluster in real time!
Stars: ✭ 287 (+403.51%)
Mutual labels:  task, celery
fast-laravel
基于Swoole的高性能HTTP服务器,加速您Laravel应用程序。
Stars: ✭ 33 (-42.11%)
Mutual labels:  task, crontab
Opensa
资产管理、资产采集、灰度发布、反向代理、批量任务、任务编排、计划任务、日志审计、权限管理、角色管理、部门管理、运维自动化
Stars: ✭ 220 (+285.96%)
Mutual labels:  task, celery
Ytask
YTask is an asynchronous task queue for handling distributed jobs in golang(go异步任务框架)
Stars: ✭ 121 (+112.28%)
Mutual labels:  task, celery
leek
Celery Tasks Monitoring Tool
Stars: ✭ 77 (+35.09%)
Mutual labels:  task, celery
Opendevops
CODO是一款为用户提供企业多混合云、一站式DevOps、自动化运维、完全开源的云管理平台、自动化运维平台
Stars: ✭ 2,990 (+5145.61%)
Mutual labels:  task, crontab
Selinon
An advanced distributed task flow management on top of Celery
Stars: ✭ 237 (+315.79%)
Mutual labels:  task, celery
croner
Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environments.
Stars: ✭ 169 (+196.49%)
Mutual labels:  task, crontab
fastweb
fastweb is a web-server integration solution. It based on tornado, celery, thrift.
Stars: ✭ 17 (-70.18%)
Mutual labels:  task, celery
Stack-Lifecycle-Deployment
OpenSource self-service infrastructure solution that defines and manages the complete lifecycle of resources used and provisioned into a cloud! It is a terraform UI with rest api for terraform automation
Stars: ✭ 88 (+54.39%)
Mutual labels:  celery
vue-element-admin-fastapi
vue-element-admin-fastapi
Stars: ✭ 145 (+154.39%)
Mutual labels:  celery
schedule-rs
An in-process scheduler for periodic jobs. Schedule lets you run Rust functions on a cron-like schedule.
Stars: ✭ 93 (+63.16%)
Mutual labels:  task
recruitr
Online Code Judging Tool
Stars: ✭ 25 (-56.14%)
Mutual labels:  celery
celery-connectors
Want to handle 100,000 messages in 90 seconds? Celery and Kombu are that awesome - Multiple publisher-subscriber demos for processing json or pickled messages from Redis, RabbitMQ or AWS SQS. Includes Kombu message processors using native Producer and Consumer classes as well as ConsumerProducerMixin workers for relay publish-hook or caching
Stars: ✭ 37 (-35.09%)
Mutual labels:  celery
genea visualizer
This repository provides scripts that can be used to visualize BVH files. These scripts were developed for the GENEA Challenge 2020, and enables reproducing the visualizations used for the challenge stimuli. The server consists of several containers which are launched together with the docker-compose.
Stars: ✭ 27 (-52.63%)
Mutual labels:  celery
qinglong
支持python3、javaScript、shell、typescript 的定时任务管理面板(A timed task management panel that supports typescript, javaScript, python3, and shell)
Stars: ✭ 6,944 (+12082.46%)
Mutual labels:  crontab
rush
🏃‍♀️ Minimalistic CLI Tool for Managing and Running Bash Snippets
Stars: ✭ 35 (-38.6%)
Mutual labels:  task

celery-task-tigger

release license celery

sanic_vue

A controllable timing task widgets with Celery

About

As is known to all, Celery have a already provides periodic task and it's very perfit. But, Assume this case: After my task was called, I hope it's task can frequency of execution, and when celery task was started.

The above case, Periodic task is hard to practice, Becacuse it's depend on celery beat. celery-task-tigger do it over simple packaging or implement for solution to do it.

Installation

pip install celery-task-tigger

Useage

Assume you have aleady install celery and can do it.

Bases

Option max_times is must be appoint.

from celery_tasktigger.decorator import tigger_task

@app.task(bind=True)
@tigger_task(max_times='forever')    # forever is expressed unlimited time
def add(self, x, y):
    return x + y

max_times

Option max_times: The maximum number of execute the task times.

Type: int

Note: The value 'forever' is expressed unlimited time.

Example:

@app.task(bind=True)
@tigger_task(max_times=3)    # after execute 3 times, raise an exception
def add(self, x, y):
    return x + y

countdown

Option countdown: You can also provide the countdown argument to execute.

Type: int

Default: 1 (seconds)

Example:

@app.task(bind=True)
@tigger_task(max_times='forever', countdown=3)    # each execute in 3 seconds
def add(self, x, y):
    return x + y

OR

@app.task(bind=True)
@tigger_task(max_times='forever')    
def add(self, x, y, countdown=3):  # you also can define formal parameter in task
    return x + y

How To Calling Task

>> from example import add
>> add.apply_async((1,2))

you can also delayed execute task, as follow:

>> from example import add
>> add.apply_async((1,2), countdown=4)   # after 4 seconds, begin start task
# add.apply_async((1,2),{'countdown': 2} countdown=4)  ## after 4 seconds, begin start task and interval in 2 seconds

About Celery Task, Please see below for details: Celery Calling-Tasks Document

How To Stop

if you appoint max_times='forever' or provides the bigger values of max_times, you must stop it in programe.

>> result = add.apply_async((1,2))
>> result.revoke()
   or
>> from mycelery import app
>> app.control.revoke('task_id')

See below for details: Celery Document——FAQ

Some screenshots

Features

  • 100% full compatible with Celery 3 | 4

  • the frequency of execution for task

  • ...and many other stuff (o,0)

Author

  • Boyle Gu
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].