Skip to main content

I'm going through the FME Server Authoring training, and in one exercise it had me start projects that would run pretty much indefinitely, then cancel them........ but there's no cancel button. I know it's supposed to be in the top right corner, that's all the documentation, but it's not there. I can't keep doing anything now because I can only have the one job running at a time in the first place (so I've got another few things in the queue I also can't cancel). When I first start a job, I get the "cancel" button on the confirmation page, and it works... but it's too late for that on these infinity-projects.

So... help? Why don't I have a cancel button? And what do I do?? (Note: I am not admin, and the one person who probably is admin is at the Esri conference for the next week ie it's just me with server access currently)

(proof attached just for fun)

 

I think you need to have Jobs Manage permissions to see the cancel button on the jobs page.

 

 

If you click on the job to bring up the details page, can you cancel it there?

Hi @jdmiller95,

I believe you have stumbled into a gui bug as although a user should have access to Cancel their own jobs (http://docs.safe.com/fme/html/FME_Server_Documentation/WebUI/Users.htm) the Cancel button is only present in the Web UI if the User's Security settings also include 'Manage' Jobs. I have tested the latest FME Server beta and it appears this issue has been addressed as the Cancel button is now present.

Since your Admin is not currently available to give you these permissions please consider using the Rest API as a workaround to make a DELETE request following this documentation. Using this method you can specify a single job ID, range or all jobs in the queued or running state to be cancelled. I have included a workspace demonstrating how you can set up this request in FME with a HTTPCaller.

cancelrunningjobs.fmw


Hi @jdmiller95,

I believe you have stumbled into a gui bug as although a user should have access to Cancel their own jobs (http://docs.safe.com/fme/html/FME_Server_Documentation/WebUI/Users.htm) the Cancel button is only present in the Web UI if the User's Security settings also include 'Manage' Jobs. I have tested the latest FME Server beta and it appears this issue has been addressed as the Cancel button is now present.

Since your Admin is not currently available to give you these permissions please consider using the Rest API as a workaround to make a DELETE request following this documentation. Using this method you can specify a single job ID, range or all jobs in the queued or running state to be cancelled. I have included a workspace demonstrating how you can set up this request in FME with a HTTPCaller.

cancelrunningjobs.fmw

Hi @hollyatsafe,

This is actually very helpful, thank you! I have just one further problem, though... because our Server is in its brand-new infancy... I'm currently only able to login using Windows Credentials. So I've tried to Rest API, but I need to enter login info... and I've tried the HTTPCaller, which it seems also cannot accept that type of connection. Is there anything else I can do, or am I simply stuck until the admin comes back? This is remarkably frustrating, but it's nice to at least know it's a known issue being addressed..!


I think you need to have Jobs Manage permissions to see the cancel button on the jobs page.

 

 

If you click on the job to bring up the details page, can you cancel it there?

Unfortunately not :/


Hi @hollyatsafe,

This is actually very helpful, thank you! I have just one further problem, though... because our Server is in its brand-new infancy... I'm currently only able to login using Windows Credentials. So I've tried to Rest API, but I need to enter login info... and I've tried the HTTPCaller, which it seems also cannot accept that type of connection. Is there anything else I can do, or am I simply stuck until the admin comes back? This is remarkably frustrating, but it's nice to at least know it's a known issue being addressed..!

Hi @jdmiller95,

 

Yes I can imagine the frustration as this should be very straightforward! Even if your FME Server is set up with Active Directory you should still be able to use the Basic Authentication in the HTTPCaller with your Windows Credentials - what is the error returned when you try this?

Alternatively you can authenticate our Rest API requests using an FME Token instead of Login details. In the FME Server Web UI select the User Settings icon in the top right corner and select Manage Tokens. Create a new Token with Jobs: Access permissions and then use the modified workspace attached to run this. The Authorization is now set using a header token instead.

 

CancelRunningJobs_Token.fmw


Hi @jdmiller95,

 

Yes I can imagine the frustration as this should be very straightforward! Even if your FME Server is set up with Active Directory you should still be able to use the Basic Authentication in the HTTPCaller with your Windows Credentials - what is the error returned when you try this?

Alternatively you can authenticate our Rest API requests using an FME Token instead of Login details. In the FME Server Web UI select the User Settings icon in the top right corner and select Manage Tokens. Create a new Token with Jobs: Access permissions and then use the modified workspace attached to run this. The Authorization is now set using a header token instead.

 

CancelRunningJobs_Token.fmw

Oh, wow -- I'm finally free! The token login and attached workspace cancelled the jobs running & queued. Thank you again for your help!


Reply