Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
7 subscribers
Views
2085 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
I have a process that sends files to a separate system in bulk and I want to spr
ryanh
over 10 years ago
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
0
ryanh
over 10 years ago
I'll have to give the seconds part a shot again, since my test outputs didn't show seconds I assumed the timer was ignoring them. I am contemplating a rewrite to work on a queue system as you suggested. This would be a better long term way to go. Short term I was hoping to use the existing timer solution and throw in a quick rand() function to spread the attempts out over 1-2 hours since this is happening in the middle of the night and isn't time critical. I have the rand() working in test now and it was a quick fix.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
ryanh
over 10 years ago
I'll have to give the seconds part a shot again, since my test outputs didn't show seconds I assumed the timer was ignoring them. I am contemplating a rewrite to work on a queue system as you suggested. This would be a better long term way to go. Short term I was hoping to use the existing timer solution and throw in a quick rand() function to spread the attempts out over 1-2 hours since this is happening in the middle of the night and isn't time critical. I have the rand() working in test now and it was a quick fix.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data