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

  • SEARCH
  • Home
  • 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 653649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:24:20+00:00 2026-05-13T22:24:20+00:00

Do scheduled tasks load the Application.cfc in the same way as web pages? We

  • 0

Do scheduled tasks load the Application.cfc in the same way as web pages? We have a task which runs nightly and needs to use a services cfc loaded into the application. Will the application scope exist in the same way as it does when calling a standard web page? Are there any differences or gotchas to watch out for?

  • 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-05-13T22:24:21+00:00Added an answer on May 13, 2026 at 10:24 pm

    The CF task scheduler makes an HTTP call to the URL you specify in the task, so all standard rules apply. Application.cfm/application.cfc is run, the app scope exists, and so forth.

    The only thing, offhand, you need to keep in mind is that the scheduler itself doesn’t recognize errors, so you should write the task in such a way that it logs, emails, etc. on error. And, during testing, probably on success.

    Edit: Sergii noted something I’d overlooked. The scheduler doesn’t maintain cookies. It acts more like a spider. Therefore, anything in the session or client scopes or written to cookies won’t actually be stored, and will be lost next time the action is run.

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

Sidebar

Related Questions

I have next task: I need to load the same file into my web
I have an asp.net MVC web application that requires tasks to be scheduled. (A
Possible Duplicate: ASP.Net:Best way to run scheduled tasks I have to make a scheduled
I have inherited some code which involves a scheduled task that writes data (obtained
Our system is configured with US/Eastern time and we have some scheduled tasks which
I have a C# Application that does some maintenance tasks. It needs to run
We use scheduled tasks in a Spring web application to send reminders, daily digests,
I've got a strange behavior with scheduled tasks. I've got the following settings <task:scheduled-tasks>
I have a scheduled task that is very IO intensive (deleting hundreds of thousands
I have a scheduled task running on a Windows Server 2008 R2 that is

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.