How to keep Switch from duplicating jobs

Post Reply
printlab
Member
Posts: 26
Joined: Thu Nov 19, 2015 6:58 pm

How to keep Switch from duplicating jobs

Post by printlab »

Hello all,

How would i go about stopping switch from duplicating jobs. Here's what I have:
a folder with 5 jobs, I want to use the assemble job element to assemble 4 of those jobs into a single file, then use another assemble job element to assemble the left over job into a file.

My problem is that when I try to use two assemble jobs, one with Every 4 Jobs and the other with Every 1 jobs, I get duplicate jobs. all the files go through the Every 1 Jobs assemble job element, and four of the jobs go through the Every 4 jobs assemble jobs element and one job is left in the original folder. in the end I have 6 folders:
Folder1 with 1 job
Folder2 with 1 Job
Folder3 with 1 Job
Folder4 with 1 job
Folder5 with 1 job
Folder6 with 4 jobs

Please help!
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: How to keep Switch from duplicating jobs

Post by gabrielp »

If you don't want Switch to duplicate them (to send them to two different connectors) then route them first into separate folders, each with its own assemble criteria. For example, you could have all of your jobs in "Jobs in", then route the ones with more than 1 file into "Multiple files" which goes into a single assemble. From "Jobs in", you could then route all other jobs to "Single files" which goes into its own assemble.

Honestly though, I think what you want to do can be done with a single assemble. Assemble based on 4 files coming in, set a timeout, and when an orphan timeout occurs, route it back into the flow to continue as a single.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
printlab
Member
Posts: 26
Joined: Thu Nov 19, 2015 6:58 pm

Re: How to keep Switch from duplicating jobs

Post by printlab »

Thank you Gabriel!

We are going to go with the orphan time out.

Thank you for your time!
Post Reply