Skip to main content

Gevent Crontab Scheduler

Project description

# GeventCron

### 使用方法:

```
#coding:utf-8
import geventcron
from datetime import datetime
import time
import os
import requests

def func_1():
time.sleep(2)

def func_2():
time.sleep(2)

def func_3():
time.sleep(2)

if __name__ == "__main__":
scheduler = geventcron.Scheduler(logger_name='task_scheduler')
scheduler.schedule('task_1', geventsheduler.every_second(4), func_1)
scheduler.schedule('task_2', geventsheduler.every_second(1), func_2)
scheduler.schedule('task_3', geventsheduler.every_second(1), func_3)
scheduler.run_forever(start_at='once')
```

Project details


Release history Release notifications

History Node

1.5

This version
History Node

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
geventcron-1.0.tar.gz (2.9 kB) Copy SHA256 hash SHA256 Source None Sep 18, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page