Jump to content

Search the Community

Showing results for tags 'schedule'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 3 results

  1. Hi Guys, I have to some scheduling export to excel like pull every week or daily. i found there is one solution for this is using MS SQL Server Agent. I guest i able to save the query. But the problem is the query result save in SERVER instead of the shared drive. Anyone have face this problem before? or maybe you have a better solution for that? The C:/ drive actually is from server side.
  2. There are a couple great threads on SO about how to store complex recurring events for a calendar: Calendar Recurring/Repeating Events - Best Storage Method SQL Infinite Calendar Pattern However these are for storing events that get read at any time. I'm trying to repurpose these storage methods for having scripts run at those times. Once. Reliably. And be run late if they don't run on time. I might have thousands or tens of thousands of events, so I've read that I should not use Apache's Crontab for this. For example, I have a script that needs to send an email to a customer every Tuesday and Thursday at 2PM. Thanks to those threads I now understand how to store that interval, and even how to query for it. What I can't figure out how to reliably only send the email to the customer once. Here's the best solution I've come up with: I run a cron job every minute. It polls the database and finds events that should have run in the last 5 minutes, and that haven't been run in the last 5 minutes. It adds the event to a queue (another table?) to be run by a separate script. It then updates the event record to say it ran now. Issues: If the cron job ever fails, or takes more than 5 minutes, it could miss events that fall outside of the 5 minute window. What if an event is scheduled every 2 minutes? How can I guaranty the event only fires once when scheduled, even if the interval between events is every minute? How would you solve this? Instead of storing the last time it ran, should I calculate and store the next time it should run and just query based on that? Thanks for any help!
  3. Hello, Im having problems using the mysql event function. The query im using is the following: CREATE EVENT newEvent ON SCHEDULE EVERY 1 DAY DO UPDATE orderrader SET vs=1 WHERE order_datum <= DATE_SUB(NOW(), INTERVAL 14 DAY) ; The event is supposed to update the vs-field to one 14 days after the row is written into the database. I checked the table out 15 days after the first row was inserted, but still no update. Thanks alot, Erik
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.