Trigger a job with an http request - VisualCron - Forum

Community forum

dabelenda
2019-10-22T13:50:58Z
Hello,

I am looking for a simple mean to trigger a job every time a http query is done.
Is there a possibility to make this kind of thing with the available tools (trigger or other) visualcron has?
Support
2019-10-22T17:48:05Z
Originally Posted by: dabelenda 

Hello,

I am looking for a simple mean to trigger a job every time a http query is done.
Is there a possibility to make this kind of thing with the available tools (trigger or other) visualcron has?



It depends on what features you need. You can use the Web API to execute a Job through a REST HTTP query.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dabelenda
2019-10-23T06:00:40Z
Hi,
To be more precise, we have web service that post files and we want to trigger the corresponding job to process this file.
I thought about using the visualcron web api but we have multiple files to process with different job and it seem complex to trigger only on a specific file.

For example:
We have 2 files, file1 triggers the jobA and file2 triggers the fileB but the service that send the files is the same for both.
How can I trigger the corresponding job without adding more complexities?
thomas
2019-10-23T08:17:49Z
Seems like you can just add a file trigger to the the jobs that should be triggered.
Support
2019-10-23T10:10:42Z
Originally Posted by: thomas 

Seems like you can just add a file trigger to the the jobs that should be triggered.



I think so too. But again, the Web API, if he wants to Trigger through that he can also supply parameters to to the web API to make it dynamic (Job parameters).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dabelenda
2019-10-29T14:54:15Z
Hi,
Thank you for your replies, but I can't use local file trigger, the web service don't have the right to deposit files locally where visualcron is running on.
For the web api it may be a solution but actually this web service only post files and from my research the visualcron web api don't have the possibility to receive a file to trigger a job. Am I right?

The two solutions we explored are:
1. To put a ftp server on the server where the web service is running and using a remote file trigger. It's not an ideal solution but it's working.
2. To implement a "service" on the visualcron server who is listening a web request and triggers a defined job when the file arrives. It's seems cumbersome and we want to avoid implementing something from scratch if we could.
Scroll to Top