Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


felix
  •  felix
  • No customer Topic Starter
2014-05-27T19:58:36Z
So SQL task and job error notifications are working fine, except on one job. When the http task in this job fails it will throw an email notification on job failed (if I set it) but not the same sql job failed, and task error notifications that work on other jobs!

The failures of this job I've been testing are when the url is invalid in the task. The task is as follows (although i just left everything as default that I know of except for the timout):
GET
Content-type header: application/x-www-form-urlencoded; charset=UTF-8
Auth type: NTLM
Timout in seconds: 1
KeepAlive: check
AllowAutoRedirect: check
Credentials: No credential


I've played around with these settings a bit (ive tried the default of 600, and tried unchecking the KeepAlive and AllowAutoRedirect) and have not gotten it to work. I really don't understand how the same notification trigger (job failed) could work with one notification but not anouther. Here's my job failed notification SQL if that helps, thanks:

insert into vclog
(DateTime,Source,JobProcId,JobName,TaskName,Status,ErrorCode,ErrorMsg,Notification,Message)
values
('{DATETIME()}','VisualCron','{JOB(Active|UniqueProcessId)}','{JOB(Active|Name)}','{TASK(PrevTask,Name)}','{JOB(Active|Status)}','{JOB(Active|ExitCode)}','{TASK(PrevTask,StdErr)}','{TASK(Active,Name)}','{TASK(PrevTask,StdOut)}');



Sponsor
Forum information
Support
2014-05-27T22:22:30Z
Not sure I understood what the problem was really but {TASK(Active,Name)} maybe should be {TASK(PrevTask,Name)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
felix
  •  felix
  • No customer Topic Starter
2014-05-27T23:25:49Z
Let me explain more: We have decided to log errors by using SQL Notifications to insert information about running visualcron tasks and jobs into a database so we can log errors and other information.

So basically in the flow section of a task or job, we trigger sql notifications On Start, On error, etc... to get logs. (we decided to do custom logging rather than use visualcron's logs)

My problem is for some reason on one job the sql notification won't run on a "Job Failed" in the Job "flow" section, but email notifications will, same for task error. Do you understand? Thanks.
Support
2014-05-28T06:58:08Z
Originally Posted by: felix 

Let me explain more: We have decided to log errors by using SQL Notifications to insert information about running visualcron tasks and jobs into a database so we can log errors and other information.

So basically in the flow section of a task or job, we trigger sql notifications On Start, On error, etc... to get logs. (we decided to do custom logging rather than use visualcron's logs)

My problem is for some reason on one job the sql notification won't run on a "Job Failed" in the Job "flow" section, but email notifications will, same for task error. Do you understand? Thanks.



But an SQL Notification works in another Job? It sounds like something is different in the Flow settings?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top