
CUPS the server will never be installed on an Odoo.sh machine. That being said you can use a remote printer with a cups client. The problem lays in the sorry state of libcups dependencies so we will try to get a reliable section in the documentation for 20.04 as soon as we can get a testcase. Meanwhile, it has been reported that the command line `lp` cups cli client tool could be used as a workaround in the OCA concerned module: https://gist.github.com/rm-jamotion/0453e91ff3e13350a1e46a11ebb02e8d
33 lines
1.5 KiB
ReStructuredText
33 lines
1.5 KiB
ReStructuredText
:banner: banners/odoo-sh.jpg
|
|
|
|
.. _odoosh-advanced-frequent_technical_questions:
|
|
|
|
==================================
|
|
Frequent Technical Questions
|
|
==================================
|
|
|
|
"Scheduled actions do not run at the exact time they were expected"
|
|
-------------------------------------------------------------------
|
|
|
|
On the Odoo.sh platform, we cannot guarantee an exact running time for scheduled actions.
|
|
|
|
This is due to the fact that there might be multiple customers on the same server, and we must guarantee a fair share of the server for every customer. Scheduled actions are therefore implemented slightly differently than on a regular Odoo server, and are run on a *best effort* policy.
|
|
|
|
.. warning::
|
|
Do not expect any scheduled action to be run more often than every 5 min.
|
|
|
|
Are there "best practices" regarding scheduled actions?
|
|
-------------------------------------------------------
|
|
|
|
**Odoo.sh always limits the execution time of scheduled actions (*aka* crons).**
|
|
Therefore, you must keep this fact in mind when developing your own crons.
|
|
|
|
We advise that:
|
|
|
|
- Your scheduled actions should work on small batches of records.
|
|
- Your scheduled actions should commit their work after processing each batch;
|
|
this way, if they get interrupted by the time-limit, there is no need to start over.
|
|
- Your scheduled actions should be
|
|
`idempotent <https://stackoverflow.com/a/1077421/3332416>`_: they must not
|
|
cause side-effects if they are started more often than expected.
|