Coder Social home page Coder Social logo

cronner's Introduction

Hey, I'm mtik00

I've been a software engineer for almost 30 years now. I've mainly been focused on test automation, but I've also had a lot of experience in DevSecOps/SRE/Platform/etc, docker/k8s, ci/cd, and much more.

My favorite language is ๐Ÿ, by a long shot! A good friend always says:

Python is the second best language for every problem.

I totally agree.

Here are some statistics provided by the great readme-stats app:


cronner's People

Contributors

mtik00 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

yutiansut

cronner's Issues

--echo duplicates line ending

--echo uses "print", but it doesn't remove the line ending from stdout. For example:

  INFO -  - 0%

  INFO -  - 10%

  INFO -  - 20%

  INFO -  - 30%

  INFO -  - 40%

should be echoed (and logged) as:

INFO -  - 0%
INFO -  - 10%
INFO -  - 20%
INFO -  - 30%
INFO -  - 40%

variable expansion

Add variable expansion to the JSON job format to act like environment variables.

Document JSON format

Remove the format documentation from the README and create a proper place in Sphinx.

pypi

Add documentation for installing from Pypi

echo job run

Add an option for echoing the job run to the screen.

Add proper Windows service

It would be nice to not have to add a cronner batch file to the Task Manage,r and get rid of Task Manager all together.

Interactive Mode

Sometimes I want to force a job to happen, regardless of when its next schedule run is.

There are two options:

  1. Copy the command out of the conf file (may be a pain because of variables
  2. I could add a menu driven option (print job, ask 'run this?', print next job, etc)

I suggest I implement the second option, since it would be pretty easy. Something like:
python -m cronner --interactive

Add timing data to output

As it is, there's no way of knowing how long cronner took from start to finish, nor when it started, nor when it finished!

It would be nice to see that listed on the output so it's available after the sleep occurs.

creating new db doesn't work

Calling python -m cronner --cache-file XXX produces the following exception:

Traceback (most recent call last):
  File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\Python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "c:\users\tim\dropbox\code\python\cronner\src\cronner\__main__.py", line 103, in <module>
    cache = get_cache(os.path.join(args.cache_file))
  File "c:\users\tim\dropbox\code\python\cronner\src\cronner\cache.py", line 31, in get_cache
    _init(config_file)
  File "c:\users\tim\dropbox\code\python\cronner\src\cronner\cache.py", line 25, in _init
    CACHE = Cache(cache_file)
  File "c:\users\tim\dropbox\code\python\cronner\src\cronner\cache.py", line 47, in __init__
    self._create()
  File "c:\users\tim\dropbox\code\python\cronner\src\cronner\cache.py", line 62, in _create
    self.cur.execute('''
AttributeError: Cache instance has no attribute 'cur'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.