Hi Experts,
I have requirement to schedule job on server and it should behave in a certain way. The workflow or server should check if there is a latest updated file in NAS drive, it should run the workflow and produce the output otherwise it should cancel the workflow running and produce no output. It should be condition based job scheduling on server. so if condition is met then it should run the job otherwise cancels running the job.
Any help here would be appreciated.
Thanks in Advance!!
Hey @Kurohits, you can make a simple, initial workflow that uses a Directory tool to check the NAS drive location of interest and see whether or not [LastWriteTime] is within your acceptable timeframe for being recently updated using a filter. If so, you can then use a Download tool downstream of your 'True' anchor to create a new job and add it to the queue with the Alteryx Server API: https://help.alteryx.com/current/en/server/api-overview/alteryx-server-api-v3/server-api-v3-objects/...
Hi Kurohits. You should be able to achieve this by using control containers.
Control container 1: Check the NAS folder with a directory tool,
Control container 2: Rest of your workflow
If the given condition for your NAS-folder isn't met after your first control container, it should produce an error. Else run the rest of the workflow (control container 2)
Use case #3 in this guide could probably help you: https://community.alteryx.com/t5/Engine-Works/Control-Containers-Take-Control-of-Your-Workflow/ba-p/...
@jandalgaard great shout with Control Containers! Totally overlooked that despite offering it as a solution elsewhere earlier!
Hi @jandalgaard
I can't see this control container tool in Alteryx Desktop. I am using 2022.3.1 version. Its not latest version and in my organisation everyone uses same version. I am not sure if this tool is avialable in 2022.3.1 version. If yes, then please tell me how to enable this tool in tool pallete.
Thanks
Hi @DataNath
Thanks for the solution. Can you please tell me how to actually implement in Alteryx? I am new to Alteryx server and the link you have shared carries lot of codes and parameters. I don't know how to exactly use these codes and parameters. Also, to implement this solution on server, do i need to have any specific permission. I can see in my profile page of gallery and I have only 2 persmissions provided i.e Create new collections and schedule jobs. API access is not permitted.
Kindly let me know if you need any further information.
Thanks
User | Count |
---|---|
106 | |
82 | |
70 | |
54 | |
40 |