In drupal core D7 queues are defined using hook_cron_queue_info, which is called by drupal_cron_run.

There is no way for a queue to avoid being run during cron run, at least not until #2136369: Provide a way to avoid processing a queue during cron execution in D7.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marvil07’s picture

Status: Active » Needs review
FileSize
923 bytes

Here Sam's workaround.
I tested basic behavior and it seems to be working fine, but I had a local problem that is unrelated and therefore could not test it completely.
I'd like to do a full test before adding it.

marvil07’s picture

This could be done in the alter hook from drupalorg, since this is specific for drupal.org

sdboyer’s picture

i thought about doing it in the alter, but it's actually not d.o-specific. we have a separate point of ingress for synchronization on cron, and if that's what's wanted, then that's what should be configured. syncs are potentially heavy-duty, and shouldn't be conflated with normal cron activities; if someone really wants them processed cron-style rather than select()-ishly, then they can set up a cronjob to drain the queue directly. it's not like we have to support shared hosting situations - if you have access to making git repos, i'm pretty sure you'll have access to set up a cronjob.

i guess now i just need to figure out how i can test this on git7, and we'll be good.

marvil07’s picture

Title: Workaround core cron run behaviour » Do not run versioncontrol queues on cron
Assigned: Unassigned » sdboyer
FileSize
1.3 KB

Core accepted #2136369: Provide a way to avoid processing a queue during cron execution, so I am adding a new patch to make versioncontrol require core 7.25 and using the new queue info key to avoid cron processing.

@sdboyer: do you want to test it? if not I'll add it after the weekend.

marvil07’s picture

Status: Needs review » Fixed

Added last patch to 7.x-1.x.

marvil07’s picture

Assigned: sdboyer » Unassigned
sdboyer’s picture

we just deployed #1 to d.o, which'll stopgap until we have a 7.25 core

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

  • Commit a039cd1 on 7.x-1.x, drush-vc-sync-unlock by marvil07:
    Issue #2136375: Do not run versioncontrol queues on cron.
    

  • Commit a039cd1 on 7.x-1.x by marvil07:
    Issue #2136375: Do not run versioncontrol queues on cron.