Skip to content

Running even though there are no jobs available? #124

Description

@klodoma

I am not sure since when this is happening, but I think it has something to do with the latest upgrade.

If I run

 php bin/console dtc:queue:run -d 120

then I get the following logs, although there no jobs in queue or whatsoever.
dtc_queue_job, dtc_queue_run tables are empty.

Does this make sense?

Dec  3 20:56:09 |DEBUG| DOCTRI "START TRANSACTION"
Dec  3 20:56:09 |DEBUG| DOCTRI UPDATE dtc_queue_run SET elapsed = ?, last_heartbeat_at = ? WHERE id = ? 0=45.01664113998413 1="2019-12-03 19:56:09" 2="8"
Dec  3 20:56:09 |DEBUG| DOCTRI "COMMIT"
Dec  3 20:56:09 |DEBUG| DOCTRI SELECT d0_.id AS id_0 FROM dtc_queue_job d0_ WHERE d0_.status = ? AND (d0_.when_us IS NULL OR d0_.when_us <= ?) AND (d0_.expires_at IS NULL OR d0_.expires_at > ?) ORDER BY d0_.priority DESC, d0_.when_us ASC LIMIT 100 0="new" 1="157540296946011300" 2="2019-12-03 19:56:09"
Dec  3 20:56:09 |DEBUG| DOCTRI "START TRANSACTION"
Dec  3 20:56:09 |DEBUG| DOCTRI UPDATE dtc_queue_run SET elapsed = ?, last_heartbeat_at = ? WHERE id = ? 0=45.26295495033264 1="2019-12-03 19:56:09" 2="8"
Dec  3 20:56:09 |DEBUG| DOCTRI "COMMIT"
Dec  3 20:56:09 |DEBUG| DOCTRI SELECT d0_.id AS id_0 FROM dtc_queue_job d0_ WHERE d0_.status = ? AND (d0_.when_us IS NULL OR d0_.when_us <= ?) AND (d0_.expires_at IS NULL OR d0_.expires_at > ?) ORDER BY d0_.priority DESC, d0_.when_us ASC LIMIT 100 0="new" 1="157540296996991200" 2="2019-12-03 19:56:09"
Dec  3 20:56:09 |DEBUG| DOCTRI "START TRANSACTION"
Dec  3 20:56:09 |DEBUG| DOCTRI UPDATE dtc_queue_run SET elapsed = ?, last_heartbeat_at = ? WHERE id = ? 0=45.77183294296265 1="2019-12-03 19:56:09" 2="8"
Dec  3 20:56:09 |DEBUG| DOCTRI "COMMIT"
Dec  3 20:56:10 |DEBUG| DOCTRI SELECT d0_.id AS id_0 FROM dtc_queue_job d0_ WHERE d0_.status = ? AND (d0_.when_us IS NULL OR d0_.when_us <= ?) AND (d0_.expires_at IS NULL OR d0_.expires_at > ?) ORDER BY d0_.priority DESC, d0_.when_us ASC LIMIT 100 0="new" 1="157540297030901300" 2="2019-12-03 19:56:10"
Dec  3 20:56:10 |DEBUG| DOCTRI "START TRANSACTION"
Dec  3 20:56:10 |DEBUG| DOCTRI UPDATE dtc_queue_run SET elapsed = ?, last_heartbeat_at = ? WHERE id = ? 0=46.10707402229309 1="2019-12-03 19:56:10" 2="8"
Dec  3 20:56:10 |DEBUG| DOCTRI "COMMIT"
Dec  3 20:56:10 |DEBUG| DOCTRI SELECT d0_.id AS id_0 FROM dtc_queue_job d0_ WHERE d0_.status = ? AND (d0_.when_us IS NULL OR d0_.when_us <= ?) AND (d0_.expires_at IS NULL OR d0_.expires_at > ?) ORDER BY d0_.priority DESC, d0_.when_us ASC LIMIT 100 0="new" 1="157540297077936900" 2="2019-12-03 19:56:10"
Dec  3 20:56:10 |DEBUG| DOCTRI "START TRANSACTION"
Dec  3 20:56:10 |DEBUG| DOCTRI UPDATE dtc_queue_run SET elapsed = ?, last_heartbeat_at = ? WHERE id = ? 0=46.579270124435425 1="2019-12-03 19:56:10" 2="8"
Dec  3 20:56:10 |DEBUG| DOCTRI "COMMIT"
Dec  3 20:56:10 |DEBUG| DOCTRI SELECT d0_.id AS id_0 FROM dtc_queue_job d0_ WHERE d0_.status = ? AND (d0_.when_us IS NULL OR d0_.when_us <= ?) AND (d0_.expires_at IS NULL OR d0_.expires_at > ?) ORDER BY d0_.priority DESC, d0_.when_us ASC LIMIT 100 0="new" 1="157540297095925000" 2="2019-12-03 19:56:10"
Dec  3 20:56:10 |DEBUG| DOCTRI "START TRANSACTION"
Dec  3 20:56:10 |DEBUG| DOCTRI UPDATE dtc_queue_run SET elapsed = ?, last_heartbeat_at = ? WHERE id = ? 0=46.75971603393555 1="2019-12-03 19:56:10" 2="8"
Dec  3 20:56:10 |DEBUG| DOCTRI "COMMIT"
Dec  3 20:56:11 |DEBUG| DOCTRI SELECT d0_.id AS id_0 FROM dtc_queue_job d0_ WHERE d0_.status = ? AND (d0_.when_us IS NULL OR d0_.when_us <= ?) AND (d0_.expires_at IS NULL OR d0_.expires_at > ?) ORDER BY d0_.priority DESC, d0_.when_us ASC LIMIT 100 0="new" 1="157540297117920100" 2="2019-12-03 19:56:11"
Dec  3 20:56:11 |DEBUG| DOCTRI "START TRANSACTION"
Dec  3 20:56:11 |DEBUG| DOCTRI UPDATE dtc_queue_run SET elapsed = ?, last_heartbeat_at = ? WHERE id = ? 0=46.979125022888184 1="2019-12-03 19:56:11" 2="8"
Dec  3 20:56:11 |DEBUG| DOCTRI "COMMIT"
Dec  3 20:56:11 |DEBUG| DOCTRI SELECT d0_.id AS id_0 FROM dtc_queue_job d0_ WHERE d0_.status = ? AND (d0_.when_us IS NULL OR d0_.when_us <= ?) AND (d0_.expires_at IS NULL OR d0_.expires_at > ?) ORDER BY d0_.priority DESC, d0_.when_us ASC LIMIT 100 0="new" 1="157540297160951100" 2="2019-12-03 19:56:11"
Dec  3 20:56:11 |DEBUG| DOCTRI "START TRANSACTION"
Dec  3 20:56:11 |DEBUG| DOCTRI UPDATE dtc_queue_run SET elapsed = ?, last_heartbeat_at = ? WHERE id = ? 0=47.40811014175415 1="2019-12-03 19:56:11" 2="8"
Dec  3 20:56:11 |DEBUG| DOCTRI "COMMIT"
Dec  3 20:56:11 |DEBUG| DOCTRI SELECT d0_.id AS id_0 FROM dtc_queue_job d0_ WHERE d0_.status = ? AND (d0_.when_us IS NULL OR d0_.when_us <= ?) AND (d0_.expires_at IS NULL OR d0_.expires_at > ?) ORDER BY d0_.priority DESC, d0_.when_us ASC LIMIT 100 0="new" 1="157540297162913300" 2="2019-12-03 19:56:11"
Dec  3 20:56:11 |DEBUG| DOCTRI "START TRANSACTION"
Dec  3 20:56:11 |DEBUG| DOCTRI UPDATE dtc_queue_run SET elapsed = ?, last_heartbeat_at = ? WHERE id = ? 0=47.42810893058777 1="2019-12-03 19:56:11" 2="8"
Dec  3 20:56:11 |DEBUG| DOCTRI "COMMIT"
Dec  3 20:56:11 |DEBUG| DOCTRI SELECT d0_.id AS id_0 FROM dtc_queue_job d0_ WHERE d0_.status = ? AND (d0_.when_us IS NULL OR d0_.when_us <= ?) AND (d0_.expires_at IS NULL OR d0_.expires_at > ?) ORDER BY d0_.priority DESC, d0_.when_us ASC LIMIT 100 0="new" 1="157540297194920100" 2="2019-12-03 19:56:11"
Dec  3 20:56:11 |DEBUG| DOCTRI "START TRANSACTION"
Dec  3 20:56:11 |DEBUG| DOCTRI UPDATE dtc_queue_run SET elapsed = ?, last_heartbeat_at = ? WHERE id = ? 0=47.74859094619751 1="2019-12-03 19:56:11" 2="8"
Dec  3 20:56:11 |DEBUG| DOCTRI "COMMIT"
Dec  3 20:56:12 |DEBUG| DOCTRI SELECT d0_.id AS id_0 FROM dtc_queue_job d0_ WHERE d0_.status = ? AND (d0_.when_us IS NULL OR d0_.when_us <= ?) AND (d0_.expires_at IS NULL OR d0_.expires_at > ?) ORDER BY d0_.priority DESC, d0_.when_us ASC LIMIT 100 0="new" 1="157540297228917800" 2="2019-12-03 19:56:12"
Dec  3 20:56:12 |DEBUG| DOCTRI "START TRANSACTION"
Dec  3 20:56:12 |DEBUG| DOCTRI UPDATE dtc_queue_run SET elapsed = ?, last_heartbeat_at = ? WHERE id = ? 0=48.08786702156067 1="2019-12-03 19:56:12" 2="8"
Dec  3 20:56:12 |DEBUG| DOCTRI "COMMIT"
Dec  3 20:56:12 |DEBUG| DOCTRI SELECT d0_.id AS id_0 FROM dtc_queue_job d0_ WHERE d0_.status = ? AND (d0_.when_us IS NULL OR d0_.when_us <= ?) AND (d0_.expires_at IS NULL OR d0_.expires_at > ?) ORDER BY d0_.priority DESC, d0_.when_us ASC LIMIT 100 0="new" 1="157540297234912800" 2="2019-12-03 19:56:12"
Dec  3 20:56:12 |DEBUG| DOCTRI "START TRANSACTION"
Dec  3 20:56:12 |DEBUG| DOCTRI UPDATE dtc_queue_run SET elapsed = ?, last_heartbeat_at = ? WHERE id = ? 0=48.14727997779846 1="2019-12-03 19:56:12" 2="8"
Dec  3 20:56:12 |DEBUG| DOCTRI "COMMIT"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions