/[drupal]/contributions/modules/hosting/hosting.queues.inc
ViewVC logotype

Log of /contributions/modules/hosting/hosting.queues.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.56 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 5 16:18:05 2009 UTC (3 weeks, 2 days ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-6--0-4-ALPHA3, HEAD
Changes since 1.55: +8 -2 lines
Diff to previous 1.55
Replace crontab entry so that it _will_ work on Ubuntu and other systems using Dash with the new drush 2.1

Revision 1.55 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Oct 24 05:54:15 2009 UTC (5 weeks, 1 day ago) by anarcat
Branch: MAIN
Changes since 1.54: +0 -2 lines
Diff to previous 1.54
mark the task as processing even if called directly

the previous patch here assumed wrongly that tasks were always called through the dispatch

Revision 1.54 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Oct 24 02:54:54 2009 UTC (5 weeks, 1 day ago) by anarcat
Branch: MAIN
Changes since 1.53: +8 -1 lines
Diff to previous 1.53
#593536 - remove the task from the queue earlier

Revision 1.53 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 9 15:53:07 2009 UTC (7 weeks, 1 day ago) by anarcat
Branch: MAIN
Changes since 1.52: +1 -1 lines
Diff to previous 1.52
API: drop the redundant hosting_task_queue table

the table was reproducing the status field from hosting_task and was
making it difficult to reliably manipulate the status of a task.

all instances of $node->queued should now be replaced by
$node->task_status == HOSTING_TASK_QUEUED

all uses of the timestamp in the hosting_task_queue table should instead
use the task node changed field

queries that used the hosting_task_queue table for listing pending queue
should instead look directly in the hosting_task table and look for
HOSTING_TASK_QUEUED status, be sure to join with the node table to avoid
duplicate entries due to revisions

we also introduce a HOSTING_TASK_PROCESSING status for tasks since the
queue "locking" (ie. not starting two tasks at a time) was relying on
the duplicate information

Revision 1.52 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Sep 14 11:42:21 2009 UTC (2 months, 2 weeks ago) by anarcat
Branch: MAIN
CVS Tags: DRUPAL-6--0-4-ALPHA1, DRUPAL-6--0-4-ALPHA2
Changes since 1.51: +0 -20 lines
Diff to previous 1.51
move task queue definition to task module so hosting can be safely enabled without tasks

Revision 1.51 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jul 13 09:16:55 2009 UTC (4 months, 2 weeks ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-6--0-3, DRUPAL-6--0-3-RC2, DRUPAL-6--0-3-RC3, DRUPAL-6--0-3-RC4
Changes since 1.50: +4 -2 lines
Diff to previous 1.50
Add a conditional check before running a drush function from the web interface

Revision 1.50 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 25 01:57:41 2009 UTC (5 months ago) by anarcat
Branch: MAIN
CVS Tags: DRUPAL-6--0-3-RC1
Changes since 1.49: +3 -0 lines
Diff to previous 1.49
fire up dispatch process with URI if provided in calling process

Revision 1.49 - (view) (download) (as text) (annotate) - [select for diffs]
Thu May 28 05:54:42 2009 UTC (6 months ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-6--0-2-BETA1
Changes since 1.48: +1 -1 lines
Diff to previous 1.48
#319277 - some more bug fixes. primarily the site create form now withs, with the fixed javascript. And some other things i cant recall right now. Id say it is now > 90% of the way done.

Revision 1.48 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Apr 15 20:54:28 2009 UTC (7 months, 2 weeks ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-5--0-2, DRUPAL-5--0-2-ALPHA1, DRUPAL-5--0-2-BETA1, DRUPAL-5--0-2-RC1
Branch point for: DRUPAL-5
Changes since 1.47: +5 -0 lines
Diff to previous 1.47
Fix up cron. Now uses the drush cron command, no longer provision cron

Revision 1.47 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Apr 7 00:29:51 2009 UTC (7 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.46: +0 -72 lines
Diff to previous 1.46
Refactor hosting task command to use the drush_invoke api, and take advantage of the custom logging callback. Significantly cleaned up the hosting task command through this

Revision 1.46 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 3 17:43:37 2009 UTC (7 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.45: +3 -1 lines
Diff to previous 1.45
Fix migrate task

Revision 1.45 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 3 17:36:14 2009 UTC (7 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.44: +0 -1 lines
Diff to previous 1.44
Failed imports get site disabled status

Revision 1.44 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 3 17:14:50 2009 UTC (7 months, 3 weeks ago) by anarcat
Branch: MAIN
Changes since 1.43: +1 -1 lines
Diff to previous 1.43
clarify task reporting message and make translatable

Revision 1.43 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Apr 1 23:14:22 2009 UTC (7 months, 4 weeks ago) by adrian
Branch: MAIN
Changes since 1.42: +1 -1 lines
Diff to previous 1.42
Switch back to using POST method for the backend command

Revision 1.42 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Apr 1 13:25:44 2009 UTC (7 months, 4 weeks ago) by adrian
Branch: MAIN
Changes since 1.41: +12 -36 lines
Diff to previous 1.41
Several changes relating to queue handling (all tasks are executed in their own process using the new drush_backend_fork(). Fixed the fracas was task vs task_queue statuses. needs HEAD of drush fr that function. Fix a small bug in the edit queue frequence setting page where number of items per execution got wiped out.

Revision 1.41 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Mar 30 21:37:16 2009 UTC (8 months ago) by adrian
Branch: MAIN
Changes since 1.40: +1 -1 lines
Diff to previous 1.40
#319270 - package dependency checking between platforms. almost there

Revision 1.40 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 26 01:44:08 2009 UTC (8 months ago) by adrian
Branch: MAIN
Changes since 1.39: +2 -14 lines
Diff to previous 1.39
#275511 - first step to more meaningful error statuses

Revision 1.39 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Mar 24 16:53:29 2009 UTC (8 months ago) by adrian
Branch: MAIN
Changes since 1.38: +0 -2 lines
Diff to previous 1.38
#411822 - refactor to use drush_bootstrap. This also should fix #408810.

Revision 1.38 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Mar 20 16:23:23 2009 UTC (8 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.37: +2 -4 lines
Diff to previous 1.37
#407334 - Refactor to use the drush_context API instead of passing a reference to the $args global

Revision 1.37 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 5 18:53:51 2009 UTC (8 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.36: +14 -1 lines
Diff to previous 1.36
Fix import of languages. Work around array_merge always re-indexing the keys

Revision 1.36 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Feb 26 16:21:30 2009 UTC (9 months ago) by adrian
Branch: MAIN
Changes since 1.35: +71 -77 lines
Diff to previous 1.35
Move to using drush_backend_invoke. #380688

Revision 1.35 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Feb 22 02:19:26 2009 UTC (9 months ago) by adrian
Branch: MAIN
Changes since 1.34: +9 -9 lines
Diff to previous 1.34
Remove last instances of dependance on provision.

Revision 1.34 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Feb 17 15:46:42 2009 UTC (9 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.33: +5 -111 lines
Diff to previous 1.33
First commit towards 0.2 front end.
1. Added the drush_path to the web server node type. Also added hook_update for it.
2. Changed command line generation to point at the drush path.
3. Added the code needed to call remote sites. Hosting can now manage sites on multiple server. (this is working, but not fully tested and will remain an experimental feature until 0.3).
4. Started excising provision from hosting. This is not completely done yet.

It is important to note that NEW INSTALLS with hostmaster are completely broken, you need to install 0.1 completely, and then replace hosting with this checkout, physically remove the drush, provision and cvs_deploy modules from the hostmaster directory, and then run update.php

You will need to then remove the symlink to drush.php in the root directory, and configure the drush_path to the drush 2.x drush.php location. Provision 0.2 will need to be installed in ~/.drush

HEAD might be broken after this, but it's a start towards 0.2

Revision 1.33 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Dec 11 05:13:04 2008 UTC (11 months, 2 weeks ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-5--0-1, DRUPAL-5--0-1-RC1
Changes since 1.32: +6 -4 lines
Diff to previous 1.32
#343428 - move to proc_open, instead of exec, which makes the serialization parsing rock solid. Also, we can now pass an optional array to the calling script, which will allow us to not pass sensitive information over the command line

Revision 1.32 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 3 00:14:29 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.31: +11 -0 lines
Diff to previous 1.31
Move the --backend to the end of the command for easier copying, and initialize $return and $code variables to fix logging problem

Revision 1.31 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 2 23:55:48 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.30: +1 -1 lines
Diff to previous 1.30
Remove empty fields from the command line

Revision 1.30 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 2 03:11:13 2008 UTC (11 months, 3 weeks ago) by anarcat
Branch: MAIN
Changes since 1.29: +15 -17 lines
Diff to previous 1.29
mark output in a safer way for serialization

Patch by: Adrian
See: #340050

Part 2 of 3

Revision 1.29 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 2 01:26:01 2008 UTC (11 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.28: +1 -2 lines
Diff to previous 1.28
Fix some problems with handling on options to drush

Revision 1.28 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 28 02:38:31 2008 UTC (12 months ago) by adrian
Branch: MAIN
Changes since 1.27: +3 -0 lines
Diff to previous 1.27
Upon a site install that fails with the error PROVISION_SITE_INSTALLED, it generates an import command which then successfully gets most sites, and turns them usable. This introduces the new hook_hosting_failed_task, which allows you to do some damage control

Revision 1.27 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Nov 24 18:40:21 2008 UTC (12 months ago) by adrian
Branch: MAIN
Changes since 1.26: +4 -4 lines
Diff to previous 1.26
Platform verification now creates incomplete site nodes for each site to be imported, and then creates import tasks for each site

Revision 1.26 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 20 14:13:50 2008 UTC (12 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.25: +1 -1 lines
Diff to previous 1.25
Only filter failed commands on output, not when logging to db

Revision 1.25 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 6 19:44:11 2008 UTC (12 months, 3 weeks ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-5--0-1-BETA2
Changes since 1.24: +2 -2 lines
Diff to previous 1.24
Found a bunch of xss issues, filter on output and add additional filtering to commands

Revision 1.24 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 6 19:09:10 2008 UTC (12 months, 3 weeks ago) by adrian
Branch: MAIN
Changes since 1.23: +6 -1 lines
Diff to previous 1.23
Updated hosting_cron and hosting_stats modules to make sure they do not have any major issues before release

Revision 1.23 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Oct 30 15:16:18 2008 UTC (12 months, 4 weeks ago) by adrian
Branch: MAIN
Changes since 1.22: +0 -1 lines
Diff to previous 1.22
Create a domain_exists hook to plug in all kinds of checks against domains, to allow for hosting alias module

Revision 1.22 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Oct 30 12:41:17 2008 UTC (12 months, 4 weeks ago) by adrian
Branch: MAIN
Changes since 1.21: +13 -0 lines
Diff to previous 1.21
Retry button, and some changes to the node view layout of sites / tasks to allow modules to plug in extra fields into the info block

Revision 1.21 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Oct 28 22:49:58 2008 UTC (13 months ago) by adrian
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20
Somehow removed the filter_xss from the clean_output function, adding it back in. Missed an occurrence of hosting_generate_command when i changed the parameter order. #327355

Revision 1.20 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Oct 27 20:49:45 2008 UTC (13 months ago) by adrian
Branch: MAIN
Changes since 1.19: +19 -51 lines
Diff to previous 1.19
Redid the map_values hook to allow contrib modules to add fields to the comman line. it is now called hook_provision_args

Revision 1.19 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 24 21:37:15 2008 UTC (13 months ago) by anarcat
Branch: MAIN
Changes since 1.18: +4 -4 lines
Diff to previous 1.18
always remove tasks from queue, wether they succeed or not, to unblock
queues

Closes: #275582

Revision 1.18 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 24 21:27:58 2008 UTC (13 months ago) by anarcat
Branch: MAIN
Changes since 1.17: +1 -0 lines
Diff to previous 1.17
log tasks queu run start

Revision 1.17 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 24 21:12:10 2008 UTC (13 months ago) by anarcat
Branch: MAIN
Changes since 1.16: +11 -2 lines
Diff to previous 1.16
add generic logging function to the hosting module, that logs to stdout for drush -v and the watchdog

Revision 1.16 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Oct 21 10:49:43 2008 UTC (13 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.15: +1 -2 lines
Diff to previous 1.15
#323303 - only display task list on existing nodes, not in preview

Revision 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Oct 20 16:56:24 2008 UTC (13 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.14: +18 -7 lines
Diff to previous 1.14
#321942 (primarily) - now generates a synch command when new platforms are created, to synch the settings to the back end.

Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 17 00:17:49 2008 UTC (13 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.13: +4 -5 lines
Diff to previous 1.13
#321953 - fixed a bug in the removal of drush.php path

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Oct 16 22:13:55 2008 UTC (13 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12
#321940 - remove --uri from drush.php calls. since it will always be the default site now, no longer need to specify

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 27 15:19:36 2008 UTC (17 months ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-5--0-1-ALPHA3, DRUPAL-5--0-1-BETA1
Changes since 1.11: +3 -1 lines
Diff to previous 1.11
#275735 -  wrong display of batch items in queue conf

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 27 10:58:03 2008 UTC (17 months ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-5--0-1-ALPHA2
Changes since 1.10: +2 -2 lines
Diff to previous 1.10
Fix issue with redirect failing --uri needs the http:// to work properly, it was writing the vhost file as http:///domain.com

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 27 05:12:10 2008 UTC (17 months ago) by adrian
Branch: MAIN
Changes since 1.9: +15 -10 lines
Diff to previous 1.9
Made the hosting setup command responsible for a few more things, no actually runs dispatch itself to make sure it's working, before creating the cron entry. Lowered the frequency on the tasks queue to make wizard quicker. Cleaned up the hosting task log screen, so that usable output is gotten when drupal just returns a database connection error or similar

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 26 02:11:34 2008 UTC (17 months ago) by adrian
Branch: MAIN
Changes since 1.8: +8 -5 lines
Diff to previous 1.8
An in progress commit of the better parameterized help, for use with the requirement_help element

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jun 23 22:31:49 2008 UTC (17 months ago) by adrian
Branch: MAIN
Changes since 1.7: +15 -6 lines
Diff to previous 1.7
Add a hosting setup drush command which configures the cron entry for the dispatcher. Needed to finish the wizard properly for release

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jun 21 17:16:50 2008 UTC (17 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.6: +84 -57 lines
Diff to previous 1.6
Final changes to the queue dispatcher. I hadn't realized I hadn't committed these before

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 20 21:33:11 2008 UTC (17 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.5: +13 -6 lines
Diff to previous 1.5
Changed how dates are displayed in most views, and wrote a small handler to show the offset between when a task was created and when it was completed

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 20 18:27:22 2008 UTC (17 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.4: +8 -7 lines
Diff to previous 1.4
wrong parameter order in command for restore

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 20 17:56:36 2008 UTC (17 months, 1 week ago) by anarcat
Branch: MAIN
Changes since 1.3: +0 -4 lines
Diff to previous 1.3
don't stop processing the queue on task failure. we assume tasks are intelligent enough to manage dependencies by themselves. Should close #273007

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 20 17:53:55 2008 UTC (17 months, 1 week ago) by anarcat
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2
set the last_run and running parameters for queues to exactly the same timestamp, regardless of the time variable_set() takes to run

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 20 17:29:13 2008 UTC (17 months, 1 week ago) by adrian
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1
fix for #273003 - misplaced ) in hosting_run_queue

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 20 16:07:20 2008 UTC (17 months, 1 week ago) by adrian
Branch: MAIN
Centralized all command generation in hosting, making sure everything is run through escapeshellcmd and escapeshellarg.

Introduces hosting dispatch and hosting_queues hook, which allows you to create new queues that will be managed by hosting, by defining a hook
and a simple function.

Updated hosting_stats and hosting_cron to be (more) current, and implement the queue api.

Incomplete queue configuration form, that allows you to set the frequency that events occur at. Supports configuration of both batch and serial queues.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2