python-scheduler | Easily run periodic tasks | Job Scheduling library
kandi X-RAY | python-scheduler Summary
kandi X-RAY | python-scheduler Summary
Help on module scheduler:. NAME scheduler - Utilities to schedule and manage periodic events.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize the rule .
- Run the rule .
python-scheduler Key Features
python-scheduler Examples and Code Snippets
Community Discussions
Trending Discussions on python-scheduler
QUESTION
I have a scheduled job running on Scheduler library, and I would like to get its status ("Success", "Failed")
from python but I can't find documentation on how to get the status.
Let's take as an example the following code to use the scheduler :
...ANSWER
Answered 2022-Mar-31 at 01:22The job itself has no status message like ("Success", "Failed") because the job does not know if the logic in the scheduled function was "successful".
The user must therefore program the logic himself whether the execution has proceeded as desired.
If you want to know if the job was executed at all, regardless of the result, you can look at the number of executions.
The job has the properties attempts
, max_attempts
and has_attempts_remaining
for this purpose. Here you can find the doc page.
Maybe this example can help you too.
Disclosure: I am one of the authors of the library.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install python-scheduler
You can use python-scheduler like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page