Skip to main content
Solved

Scheduled job data download not included in email

  • December 11, 2017
  • 6 replies
  • 53 views

dbryantgeo
Contributor
Forum|alt.badge.img+7

I have an FME Server workbench that is registered with the data download service, and the download link is correctly included in the success email when ran on-demand. However when scheduled and linked to a default topic (DATADOWNLOAD_ASYNC_JOB_SUCCESS) that the Data Download success email is subscribed too, no download link is contained within the email.

What am I missing?

Best answer by erik_jan

As far as I know, scheduled jobs are per definition run by the JobSubmitter service (and the Data Download is ignored).

What you can do is have the created data stored on the server (e.g. in the Resources folders) and have the Email look for an attachment in that location.

View original
Did this help you find an answer to your question?

6 replies

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • Best Answer
  • December 11, 2017

As far as I know, scheduled jobs are per definition run by the JobSubmitter service (and the Data Download is ignored).

What you can do is have the created data stored on the server (e.g. in the Resources folders) and have the Email look for an attachment in that location.


dbryantgeo
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • December 12, 2017
erik_jan wrote:

As far as I know, scheduled jobs are per definition run by the JobSubmitter service (and the Data Download is ignored).

What you can do is have the created data stored on the server (e.g. in the Resources folders) and have the Email look for an attachment in that location.

Hi Erik,

Thank you for your swift reply, when you mention that I can have the email look in a specified location - how is this done? In the JSON for that topic?

Many thanks,

 

Darren

richardatsafe
Safer
Forum|alt.badge.img+10
erik_jan wrote:

As far as I know, scheduled jobs are per definition run by the JobSubmitter service (and the Data Download is ignored).

What you can do is have the created data stored on the server (e.g. in the Resources folders) and have the Email look for an attachment in that location.

Hi @dbryantgeo,

 

 

Yes, unfortunately the jobSubmitter, DataDownload, and the Scheduler are all different services. So a scheduled job wont fire a DataDownload_Async_Job_Success or JobSubmitter_Async_Job_Success. To help with Eric's suggestion of having the email look for the attachment is this tutorial.

 

 

https://knowledge.safe.com/articles/578/sending-email-part-5-sending-an-email-with-attachm-1.html

 

 


dbryantgeo
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • December 13, 2017
richardatsafe wrote:
Hi @dbryantgeo,

 

 

Yes, unfortunately the jobSubmitter, DataDownload, and the Scheduler are all different services. So a scheduled job wont fire a DataDownload_Async_Job_Success or JobSubmitter_Async_Job_Success. To help with Eric's suggestion of having the email look for the attachment is this tutorial.

 

 

https://knowledge.safe.com/articles/578/sending-email-part-5-sending-an-email-with-attachm-1.html

 

 

Hi Richard,

 

 

Thank you for your response, do you not feel it's counter-intuitive that a job can be registered with the data download service on upload, then be run and include a download zip (I'm not overly worried about an attachment, just a link - maybe I haven't explained that well here), but not when scheduled?

 

 

Many thanks,

 

 

Darren

 

 


richardatsafe
Safer
Forum|alt.badge.img+10
dbryantgeo wrote:
Hi Richard,

 

 

Thank you for your response, do you not feel it's counter-intuitive that a job can be registered with the data download service on upload, then be run and include a download zip (I'm not overly worried about an attachment, just a link - maybe I haven't explained that well here), but not when scheduled?

 

 

Many thanks,

 

 

Darren

 

 

Hi @dbryantgeo,

 

 

I think you are quite clear and I absolutely agree with your comment. Were looking to make that change, and have schedules use other services, but the underlying mechanics prevent this currently. So we have to use the method outlined in the article above. Please let me know if you have further questions.

 


dbryantgeo
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • December 15, 2017

Thank you both for your help, consider this answered!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings