Re: [Python] Possibili alternative a Cronojob in Python

2016-09-03 Per discussione Andrea D'Amore
2016-09-03 8:44 GMT+02:00 Fundor333 :
> Soluzione di Lorenzo: l'applicativo è un deamon/service che lavora in
> background

Ma se implementi un demone arriverai comunque a fare uno sleep() o più da
qualche parte nel codice.

Perché non usare uno degli scheduler già esistenti allora?

Cercando "python scheduler" su web, oltre a sched della stdlib vengono fuori
"scheduler" e "Advanced Python Scheduler", il secondo in particolare mi sembra
proprio quello che cerchi:

Among other things, APScheduler can be used as a cross-platform,
application specific replacement to platform specific schedulers, such as
the cron daemon or the Windows task scheduler. Please note, however, that
APScheduler is not a daemon or service itself, nor does it come with any
command line tools. It is primarily meant to be run inside existing
applications.


[1]: https://github.com/dbader/schedule
[2]: https://apscheduler.readthedocs.io/en/latest/

-- 
Andrea
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Cronojob in Python con orari variabili

2016-09-03 Per discussione Andrea D'Amore
2016-09-02 23:36 GMT+02:00 Marco Beri :

> Ma è ovvio: dalla mia testa bacata...
> Scherzi a parte ho pensato di rispondere ad una mail della lista django.

Non che non apprezzi (sono due settimane che l'ho approcciato e sto
gradendo) ma non capivo il nesso.


-- 
Andrea
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python