DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

itaybardugo
itaybardugo

Posted on

python-cron-migration | cronjobs managing

hey guys.

just published my new package:
https://github.com/itay-bardugo/python-cron-migration

the package helps developers to add/remove cronjobs with python by revision files which are composed through CLI

You can find more info on Medium:
https://medium.com/@itaybardugo91/python-cron-migration-cronjobs-managing-8b9ee1f1856e

I will be happy to hear what do you think.
Enjoy :-)

Top comments (2)

Collapse
 
shaneharter profile image
Shane Harter

I like this concept, nice work.

I took a look at how you're writing out the crontab. There are some benefits to using the crontab command to perform the edit, specifically syntax validation -- ensuring the whole cron file doesn't get borked.

This is how I did it for CronitorCLI (this is Go, but the python code using Subprocess would look pretty similar)

gist.github.com/shaneharter/f8ac1e...

Collapse
 
itaybardugo profile image
itaybardugo • Edited on

hey Shane.
Thank you for your comment and for you suggestion with your example as well as.
I will check it out.

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git