Skip to main content

restart functions at breakpoint

Project description

Function:

this module make it easy for any python script recorde results after some time-consuming task; so if some unpredictable errors happened and crashed your script, it can pass the funcs that has already successfully finished, just begin from the breakpoint;

Method:

a. before run your task,import this module, and at the fist run step -- Brestart.preRunCheck() ; check if something wrong ,and wether it needs breakpoint restart;
b. use @Brestart.logFunc to decorate the functions that cost much time,make it a recorde point;
c. finally Brestart.end() at the last run step ,can clear temp log and do not affect next run.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

Brestart2-0.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

Brestart2-0.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page