A
A
Antony_Parker2018-03-05 22:44:28
Oracle
Antony_Parker, 2018-03-05 22:44:28

What is the best way to implement daemon in python?

Task: to implement a simple python script that serves as a connector to the Oracle database, reading data at a certain frequency (once a minute, for example) and then sends this data to the bot in Telegram via the standard API.
Requirement: hosted on a server with 24/7 availability.
Question: how to approach the implementation of this task? CGI? raise using the sockets of the standard Python library, raising the server, for example, through apache2.4 and prescribe all the business logic in the server code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2018-03-06
@vintello

Celery + periodic tasks
or just a script that is launched by cron and executes all the logic, but there may be problems, for example, it failed in a minute

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question