Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Scheduler.cfc 1.8 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
  1. component {
  2. /**
  3. * Configure the ColdBox Scheduler
  4. * https://coldbox.ortusbooks.com/digging-deeper/scheduled-tasks
  5. */
  6. function configure(){
  7. /**
  8. * --------------------------------------------------------------------------
  9. * Configuration Methods
  10. * --------------------------------------------------------------------------
  11. * From here you can set global configurations for the scheduler
  12. * - setTimezone( ) : change the timezone for ALL tasks
  13. * - setExecutor( executorObject ) : change the executor if needed
  14. */
  15. /**
  16. * --------------------------------------------------------------------------
  17. * Register Scheduled Tasks
  18. * --------------------------------------------------------------------------
  19. * You register tasks with the task() method and get back a ColdBoxScheduledTask object
  20. * that you can use to register your tasks configurations.
  21. */
  22. }
  23. /**
  24. * Called before the scheduler is going to be shutdown
  25. */
  26. function onShutdown(){
  27. }
  28. /**
  29. * Called after the scheduler has registered all schedules
  30. */
  31. function onStartup(){
  32. }
  33. /**
  34. * Called whenever ANY task fails
  35. *
  36. * @task The task that got executed
  37. * @exception The ColdFusion exception object
  38. */
  39. function onAnyTaskError( required task, required exception ){
  40. }
  41. /**
  42. * Called whenever ANY task succeeds
  43. *
  44. * @task The task that got executed
  45. * @result The result (if any) that the task produced
  46. */
  47. function onAnyTaskSuccess( required task, result ){
  48. }
  49. /**
  50. * Called before ANY task runs
  51. *
  52. * @task The task about to be executed
  53. */
  54. function beforeAnyTask( required task ){
  55. }
  56. /**
  57. * Called after ANY task runs
  58. *
  59. * @task The task that got executed
  60. * @result The result (if any) that the task produced
  61. */
  62. function afterAnyTask( required task, result ){
  63. }
  64. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...