aboutsummaryrefslogtreecommitdiffstats
path: root/include/queue_fn.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-03 01:16:17 -0700
committerFriendika <info@friendika.com>2011-06-03 01:16:17 -0700
commita27391c33a6b2d3828182ca5f8e8b65998cf47a7 (patch)
treec49d6ddd2e5689a3493cda27dadcc549748e12ee /include/queue_fn.php
parentf2bdcb19e7f2748d3c368ab11deeb98d63fedca7 (diff)
downloadvolse-hubzilla-a27391c33a6b2d3828182ca5f8e8b65998cf47a7.tar.gz
volse-hubzilla-a27391c33a6b2d3828182ca5f8e8b65998cf47a7.tar.bz2
volse-hubzilla-a27391c33a6b2d3828182ca5f8e8b65998cf47a7.zip
facebook queueing on failure, sync update.php with boot.php update version to avoid race condition
Diffstat (limited to 'include/queue_fn.php')
-rw-r--r--include/queue_fn.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/queue_fn.php b/include/queue_fn.php
new file mode 100644
index 000000000..bc47ceffd
--- /dev/null
+++ b/include/queue_fn.php
@@ -0,0 +1,16 @@
+<?php
+
+function update_queue_time($id) {
+ logger('queue: requeue item ' . $id);
+ q("UPDATE `queue` SET `last` = '%s' WHERE `id` = %d LIMIT 1",
+ dbesc(datetime_convert()),
+ intval($id)
+ );
+}
+
+function remove_queue_item($id) {
+ logger('queue: remove queue item ' . $id);
+ q("DELETE FROM `queue` WHERE `id` = %d LIMIT 1",
+ intval($id)
+ );
+}