Is possible has a cron task every 30 seconds?
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
            
                3
                
                    Odpowiedzi
                
            
        
        
            
                9700
                
                    Widoki
                
            
        
    Is possible has a cron task every 30 seconds?
Thanks Federico, what I did was to have a dynamic next_execution_time. This way I set Next execution 30 seconds later.
Old question, and I didn't try it if is possible to hack the time limit. One solution may be to make 2 cron of 60 seconds one 30 second apart. Each of them will then call the same Api function
@vladimir881002 can you share your code, how you have done dynamic next_execution_time.
<field name="nextcall" eval="(DateTime.now() + timedelta(seconds=30)).strftime('%Y-%m-%d %H:%M:%S')" />
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|  | 3 wrz 23  | 12586 | ||
|  | 1 sie 22  | 5264 | ||
|  | 0 cze 16  | 3980 | ||
|  | 0 paź 24  | 2914 | ||
|  | 1 sie 24  | 5892 | 
 
                        
Niyas, thanks for answer, the problem it's that I need to request an Api every 30 seconds. And the Odoo thread has a 60 seconds hardcoded limited .