summaryrefslogtreecommitdiff
path: root/FS/FS/Cron
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-05-22 16:58:31 -0700
committerMark Wells <mark@freeside.biz>2013-05-22 16:58:31 -0700
commite6210bad824b2efc0a2d54abe8fc79093e7cc5ed (patch)
treeb74167e7763e96762e65ba32f27bd2a86987d41a /FS/FS/Cron
parent2d2fad4dc5654636abf690e0980b851540f64a5b (diff)
fully automate coordinate lookups, #23040
Diffstat (limited to 'FS/FS/Cron')
-rw-r--r--FS/FS/Cron/cleanup.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/FS/FS/Cron/cleanup.pm b/FS/FS/Cron/cleanup.pm
new file mode 100644
index 0000000..4c5cff2
--- /dev/null
+++ b/FS/FS/Cron/cleanup.pm
@@ -0,0 +1,18 @@
+package FS::Cron::cleanup;
+use base 'Exporter';
+use vars '@EXPORT_OK';
+use FS::queue;
+
+@EXPORT_OK = qw( cleanup );
+
+# start janitor jobs
+sub cleanup {
+# fix locations that are missing coordinates
+ my $job = FS::queue->new({
+ 'job' => 'FS::cust_location::process_set_coord',
+ 'status' => 'new'
+ });
+ $job->insert('_JOB');
+}
+
+1;