How to send notification to odoo users when any cron job will fail? - odoo

I have 100 cron jobs active in my database, If any cron jobs are fail then i want to send notification to users with Error log.
Is there any odoo default configuration available to do it ?

There already is a solution in the OCA repositories.

Related

View Spark UI for Jobs executed via Azure ADF

I am not able to view the spark-ui for databricks jobs executed through notebook activity in Azure datafactory.
Does anyone know which permissions needs to be added to enable the same?
--Update
Ensure you have Cluster-level permissions on PROD env
Job permissions
There are five permission levels for jobs: No Permissions, Can View,
Can Manage Run, Is Owner, and Can Manage. Admins are granted the Can
Manage permission by default, and they can assign that permission to
non-admin users.
Next...
Am able to view the completed jobs in the Spark UI without any additional setup.
It maybe that the stuff you are doing in the Notebook, does not constitute for a Spark Job.
Refer: Web UI and Monitoring and Instrumentation for more details.
Checkout Spark Glossary
Note: Job A parallel computation consisting of multiple tasks that gets spawned in response to a Spark action (e.g. save, collect);
you'll see this term used in the driver's logs.
View cluster information in the Apache Spark UI
You can get details about active and terminated clusters. If you
restart a terminated cluster, the Spark UI displays information for
the restarted cluster, not the historical information for the
terminated cluster.
So, If I run a notebook with a task to simply display my mounts or with a task that failed or exception, it is not listed in Spark UI.
#job/83 is not seen

TWS job failing. ERROR jobmon was unable to retrieve user information

I am configuring TWS job in one of our application windows server but when the job triggered it is throwing the below exception. I am using domain user to execute the job.
AWSBDW079E Jobman could not run the job because the system call used to launch the job failed: Jobmon was unable to retrieve user information.
Do I need any special permissions for the user to run the job.
Any help?
On Windows, TWS needs userid and password in order to impersonate the user.
You have to specify the USER object with the appropriate Workstation name, userid and password.
Using Dynamic Agents there are also other options using Executable job types, e.g. you can store the password locally on the agent with the parm utility.
I have figured out the issue. The issue was with the user permissions. The user which is used to run the job on the workstation must have the below permissions.
Allow log on locally
Log on as a batch job

Jira backup files being automatically created every 3 hours

On my Jira server v7.5.2 (CentOS 7), in /data/atlassian/jira/export, there is a bunch of zipfiles created every 3 hours, each around 200 Mb in size:
...
2018-Aug-14-0000.zip
2018-Aug-14-0300.zip
2018-Aug-14-0600.zip
2018-Aug-14-0900.zip
2018-Aug-14-1200.zip
2018-Aug-14-1500.zip
...
Apparently they're automated backups. However, there is neither any Scheduled Job nor any cron job with such a timing.
What could be creating these files? Is there any other Jira job scheduling or setting that I should check?
Look for Admin, System, Services. There is a Backup Service running there. You can edit or delete it there

Unable to run SQL Powershell using Agent account

In a SQL server in my environment, couple of days after patch(Not immediately after), syspolicy purge job started failing at step 3 executing powershell. When I created a test job with a simple print statement that is not working as well. If i create a Proxy with my account and run the job it suceeds. The agent account is a domain account with both local admin and sysadmin permissions on SQL server. I'm not sure why it crashes with the below error message everytime it calls powershell.
Application popup error - SQLPS.exe The application was unable to start correctly (0xc0000142). Click OK to close the application.
Reboot it is!! Whew! There aint anything wrong with the Agent account. Something with the agent account was broke! Glad the issue is resolved.
Note:: The server was rebooted after the patch and there was no pending reboot. Also, after patching the job ran successfully 2 days. So just a weird failure! I'm unable to find what broke the account.

How do we set cron job in social engine?

I am working on a social engine project and it has a module through wich an automatic email is send to users every morning. I have already created an action on the controller of the module which will send email to users. I would like to set it up under cron job tasks
How can we do that?
could you please show an example to set up it at 9 am every day?
Task scheduler is already there in the admin panel which uses cron job, you can edit settings of cron job using settings/task scheduler/task scheduler settings in the admin panel.
refer links:
cron job