Skip to content

ZeroDesigner/reporter_su

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

reporter_su

Language

English

Deacription

Auto check your task if you use PBS to submit and email you when finished

Requirements

> python 3

Installation

Option 1:

git clone git@github.com:ZeroDesigner/reporter_su.git
cd reporter_su
python setup.py install

Option 2:

pip install reporter_su

Usage

Step 1

# you need to get these informations below
receiver = 'lus***@outlook.com'
sender = '86136***@qq.com'
mail_license = '******'
smtpserver = 'smtp.qq.com'
mail_body = 'my task pdbid has been finished'
mail_title = 'task 1'
pdbid = 'change_text'

Step 2

# the checker will check task status every 60 mins
import reporter_su.pbs_reporter as rp
if rp.auto_check(pdbid,time_scan = 3600) == 0:
   rp.auto_report(receiver,sender,mail_license,smtpserver,mail_body,mail_title)

Screen Shot 2021-05-21 at 1.06.17 AM

License

MIT

Email

[email protected]


语言

中文

描述

自动检查你的任务是否已经完成(在使用PBS调度系统时),同时email提醒,在任务完成之后

依赖

大于 python 3

安装

选项 1:
git clone git@github.com:ZeroDesigner/reporter_su.git
cd reporter_su
python setup.py install
选项 2:
pip install reporter_su

用法

步骤 1
# 你需要获取这些信息
receiver = 'lus***@outlook.com'
sender = '86136***@qq.com'
mail_license = '******'
smtpserver = 'smtp.qq.com'
mail_body = 'my task pdbid has been finished'
mail_title = 'task 1'
pdbid = 'change_text'
步骤 2
# 脚本会每隔1个小时检查一下任务是否存在
import reporter_su.pbs_reporter as rp
if rp.auto_check(pdbid,time_scan = 3600) == 0:
   rp.auto_report(receiver,sender,mail_license,smtpserver,mail_body,mail_title)

Screen Shot 2021-05-21 at 1.06.17 AM

协议

MIT

邮箱

[email protected]

About

auto check your task and email you when finished

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages