meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
sap_hybris_commerce:scheduling:cronjobs_concepts_pitfalls [2019/08/27 11:01] – created Antonio Robirosasap_hybris_commerce:scheduling:cronjobs_concepts_pitfalls [2019/12/18 20:18] (current) – external edit 127.0.0.1
Line 19: Line 19:
  
   * To run any action periodically. The import of product, price and categories data is usually implemented using cronjobs which read a directory periodically and import the data from CSV files.   * To run any action periodically. The import of product, price and categories data is usually implemented using cronjobs which read a directory periodically and import the data from CSV files.
-  * To allow the customer to start a process manually using hMC and to easily log the output of the job. I once created a job to check if all the products had a valid price. +  * To allow the customer to start a process manually using Backoffice and to easily log the output of the job. I once created a job to check if all the products had a valid price. 
  
 ===== Pitfalls ===== ===== Pitfalls =====
Line 31: Line 31:
 ===== Good to know ===== ===== Good to know =====
  
-  * When the property **cronjob.timertask.loadonstartup** is false, the triggers with cron expressions aren't started. With it you may turn off the cronjobs temporally when running a heavy process like the import of product data. But it is preferably to add code to your jobs to prevent them from running if the heavy process hasn't finished yet -to have a locking mechanism-. This property can be changed on runtime on HAC.+  * When the property **cronjob.timertask.loadonstartup** is false, the triggers with cron expressions aren't started. With it you may turn off the cronjobs temporally when running a heavy process like the import of product data. But it is preferably to add code to your jobs to prevent them from running if the heavy process hasn't finished yet to have a locking mechanism. This property can be changed on runtime on HAC.
  
---Based on Hybris 5.7.0.10+--Based on Hybris 6.4
  
    
- 
-  
- 
-<!-- 
-var jcomments=new JComments(14, 'com_content',%%'/%%component/jcomments%%/'%%); 
-jcomments.setList%%('%%comments-list'); 
-%%//%%--> 
- 
- 
-=== Add comment === 
- 
- Name (required) 
- 
- E-mail (required, but will not display) 
- 
- Website 
- 
-{{:components:com_jcomments:images:smilies::laugh.gif|:D}}{{:components:com_jcomments:images:smilies::lol.gif|:lol:}}{{:components:com_jcomments:images:smilies::smile.gif|:-)}}{{:components:com_jcomments:images:smilies::wink.gif|;-)}}{{:components:com_jcomments:images:smilies::cool.gif|8)}}{{:components:com_jcomments:images:smilies::normal.gif|:-|}}{{:components:com_jcomments:images:smilies::whistling.gif|:-*}}{{:components:com_jcomments:images:smilies::redface.gif|:oops:}}{{:components:com_jcomments:images:smilies::sad.gif|:sad:}}{{:components:com_jcomments:images:smilies::cry.gif|:cry:}}{{:components:com_jcomments:images:smilies::surprised.gif|:o}}{{:components:com_jcomments:images:smilies::confused.gif|:-?}}{{:components:com_jcomments:images:smilies::sick.gif|:-x}}{{:components:com_jcomments:images:smilies::shocked.gif|:eek:}}{{:components:com_jcomments:images:smilies::sleeping.gif|:zzz}}{{:components:com_jcomments:images:smilies::tongue.gif|:P}}{{:components:com_jcomments:images:smilies::rolleyes.gif|:roll:}}{{:components:com_jcomments:images:smilies::unsure.gif|:sigh:}}1000 symbols left 
- 
- Notify me of follow-up comments\\  
- 
-[[#|Send]] 
- 
-[[#|Cancel]] 
- 
-  
- 
-<!-- 
-function JCommentsInitializeForm() 
-{ 
-        var jcEditor = new JCommentsEditor%%('%%comments-form-comment', true); 
-        jcEditor.initSmiles%%('/%%components/com_jcomments/images/smilies%%/'%%); 
-        jcEditor.addSmile%%('%%:D','laugh.gif'); 
-        jcEditor.addSmile%%('%%:lol:','lol.gif'); 
-        jcEditor.addSmile%%('%%:-)','smile.gif'); 
-        jcEditor.addSmile%%('%%;-)','wink.gif'); 
-        jcEditor.addSmile%%('%%8)','cool.gif'); 
-        jcEditor.addSmile%%('%%:-|','normal.gif'); 
-        jcEditor.addSmile%%('%%:-%%*'%%,'whistling.gif'); 
-        jcEditor.addSmile%%('%%:oops:','redface.gif'); 
-        jcEditor.addSmile%%('%%:sad:','sad.gif'); 
-        jcEditor.addSmile%%('%%:cry:','cry.gif'); 
-        jcEditor.addSmile%%('%%:o','surprised.gif'); 
-        jcEditor.addSmile%%('%%:-?','confused.gif'); 
-        jcEditor.addSmile%%('%%:-x','sick.gif'); 
-        jcEditor.addSmile%%('%%:eek:','shocked.gif'); 
-        jcEditor.addSmile%%('%%:zzz','sleeping.gif'); 
-        jcEditor.addSmile%%('%%:P','tongue.gif'); 
-        jcEditor.addSmile%%('%%:roll:','rolleyes.gif'); 
-        jcEditor.addSmile%%('%%:sigh:','unsure.gif'); 
-        jcEditor.addCounter(1000, %%''%%, ' symbols left', 'counter'); 
-        jcomments.setForm(new JCommentsForm%%('%%comments-form', jcEditor)); 
-} 
- 
-if (window.addEventListener) {window.addEventListener%%('%%load',JCommentsInitializeForm,false);} 
-else if (document.addEventListener){document.addEventListener%%('%%load',JCommentsInitializeForm,false);} 
-else if (window.attachEvent){window.attachEvent%%('%%onload',JCommentsInitializeForm);} 
-else {if (typeof window.onload=='function'){var oldload=window.onload;window.onload=function(){oldload();JCommentsInitializeForm();}} else window.onload=JCommentsInitializeForm; 
-%%//%%--> 
- 
- 
-[[http://www.joomlatune.com|JComments]] 
- 
-  * You are here:   
-  * [[:|Home]] {{:media:system:images:arrow.png}}  
-  * [[:26-scheduling|Scheduling]] {{:media:system:images:arrow.png}}  
-  * Cronjobs - Key concepts and pitfalls