Skip to main content
Solved

Scheduled job data download not included in email

  • December 11, 2017
  • 6 replies
  • 92 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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • 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
  • 24 replies
  • December 12, 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.

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
  • Safer
  • 217 replies
  • December 12, 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.

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
  • 24 replies
  • December 13, 2017
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
  • Safer
  • 217 replies
  • December 13, 2017
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
  • 24 replies
  • December 15, 2017

Thank you both for your help, consider this answered!