Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8826789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:13:33+00:00 2026-06-14T07:13:33+00:00

Over the last few weeks I was tasked with developing a ticketing system specific

  • 0

Over the last few weeks I was tasked with developing a ticketing system specific to my companies needs. Alright, not a huge deal.. Now I am onto a little trickier subject that I just can’t wrap my head around completely.

Notification System based on a tickets last update time.

Alright so as we all know in a ticketing system we have tickets, lots of them.. Each of our tickets have a ticket “state” such as “Waiting on Client”, “Pending Shipment” etc. These states have different thresholds I.E: 60 minutes, 120 minutes..

Basically I have a server application that runs every two hours. It loops through all the open tickets in the system, checks their ticket state and threshold and if the LastUpdate time is outside of my threshold of 60 minutes then the system fires off a notification saying that this ticket hasn’t been taken care of and someone needs to get on top of it. Alright great, so that means every two hours the system runs it will check the time, if the ticket does not comply with its threshold then a level 2 notification gets sent out. The same process applies for notification 3.

The problem with this scenario is that what happens when Friday rolls around? There may only be 3 tickets that have notifications that need to be sent by the close of business Friday. However when Monday rolls around and this system runs again, it is going to find every ticket out of compliance which means we will more than likely have over 100 tickets in peoples mailbox. This seems like such a common problem among any notification system that operates off a datetime.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:13:34+00:00Added an answer on June 14, 2026 at 7:13 am

    EDIT: Now that I know it’s a C# app..

    When your application is deciding whether or not to send a notification.. first, check if it is the weekend:

    if (DateTime.Now.DayOfWeek != DayOfWeek.Saturday && DateTime.Now.DayOfWeek != DayOfWeek.Sunday)
     // start sending notifications.
    

    Or, you could do this:

    if (TimeSpanElapsedToSendNotificationFor(thisItem)) {
        if (isWeekend()) {
            thisItem.LastUpdate.AddDays(2);
            persist(thisItem); // update the DB
            return;
        }
        // send notification here..
    }
    

    So, first check to see if the desired notification time has passed. If it has.. double check if it’s the weekend.. if it is.. add 2 days to the LastUpdate property on this item then exit the function. If its a weekday, it will continue processing. Using this second method, your very first check will be false on the second run-through for all jobs unless they are added on the weekend.

    PS: Why don’t you just use a scheduled task and only run it during work hours?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Over the last few weeks I have been studying the MVC design pattern for
Rather a simple question. But the implications are vast. Over the last few weeks
Over the last few months I've come across various chatter of external/private libraries not
I tried numerous times over the last few weeks to get a server side
I have noticed whilst learning how CocoaTouch works over the last few weeks that
I have been developing an application over the last few months using EF code
Over the last few weeks I've been subject to a sudden and significant performance
Over the last few weeks i have been looking at solutions to share an
I have been noticing, over the last few weeks, that my installation of VS2008
I am scratching my head over for this issue for last few weeks. My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.