I have a process that sends files to a separate system in bulk and I want to spr

I have a process that sends files to a separate system in bulk and I want to spread the file sending out over time so as not to overload the receiving system (# of connections). I am using a timer when the user finishes their process to schedule the sending at a later time. I'm upgrading the logic to move the time from midnight (the day after the user finishes their work, based on business needs) to between 4-5:30am on that same day.
=rule!ART_GetDateTimeMidnightOfGivenDateAndNumDays(ri!dateTime,2) + 0.1667 + (0.06*rand())

Question: Is there a simple way to get a timer to run on increments less than 1 minute? Right now with 100 or so transactions occurring over the 90 minute window there is a chance the rand() function will allow a few to occur the same minute. I'd like the timer to work at say 4:35:23 and 4:35:47, so that they are less likely to step on each other.

Can the timer or clock in Appian work at the second level?...

OriginalPostID-132720

OriginalPostID-132720

  Discussion posts and replies are publicly visible

Parents
  • Why not build something like a queue. Each upload job is a process. Another process "queue worker" uses a portal report to find the oldest of these jobs and sends a message to this process so that this is completing the upload. As the upload finished a message is returned and the "queue worker" triggers the next job. The queue worker could be started at a specific time and run until all jobs are done.

    I have something similar running to ensure that messages to a process are received in order under any conditions.
Reply
  • Why not build something like a queue. Each upload job is a process. Another process "queue worker" uses a portal report to find the oldest of these jobs and sends a message to this process so that this is completing the upload. As the upload finished a message is returned and the "queue worker" triggers the next job. The queue worker could be started at a specific time and run until all jobs are done.

    I have something similar running to ensure that messages to a process are received in order under any conditions.
Children
No Data