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

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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 Author • Edited on

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

Take a look at this:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›