Skip to content

Aborted task is not logged, only following ones #92

@nsteinmetz

Description

@nsteinmetz

Hi,

I noticed that some features did not work on my side (scheduled valve opening/closing) and noticed this in logs:

docker compose logs -f worker_command | grep -v -e send_heartbeat
worker_command-1  | [INFO] 11:35:47: starting worker 7712c013 for 3 functions
worker_command-1  | [INFO] 12:02:46: received signal SIGTERM, shutting down worker 7712c013
worker_command-1  | [INFO] 12:02:46: shutdown worker 7712c013 {failed: 60} after 1619250ms
worker_command-1  | [INFO] 12:03:12: starting worker 36e0f196 for 3 functions
worker_command-1  | [INFO] 13:37:24: received signal SIGTERM, shutting down worker 36e0f196
worker_command-1  | [INFO] 13:37:24: shutdown worker 36e0f196 {completed: 1534} after 92051717ms
worker_command-1  | [INFO] 13:37:51: starting worker a9b0d74e for 3 functions
worker_command-1  | [INFO] 04:00:00: task open_valve □ 5010cbb871f544f0bef45652972920b4 → worker a9b0d74e
worker_command-1  | [INFO] 2025-09-22T04:00:00+0000 - Not Opening valve for zone 94ecea69-8871-4d53-a8ea-f1b5238101eb, we are in a closing phase
worker_command-1  | [INFO] 2025-09-22T04:00:00+0000 - queue valve close_valve 94ecea69-8871-4d53-a8ea-f1b5238101eb bf752743-67ce-425a-9f12-767fb686beb5 2025-09-22 16:00:00+00:00
worker_command-1  | [INFO] 2025-09-22T04:00:00+0000 - queue valve open_valve 94ecea69-8871-4d53-a8ea-f1b5238101eb bf752743-67ce-425a-9f12-767fb686beb5 2025-09-23 04:00:00+00:00
worker_command-1  | [INFO] 04:00:00: task open_valve ■ 5010cbb871f544f0bef45652972920b4 ← None
worker_command-1  | [INFO] 06:12:00: task close_valve ⊘ 92b5d3e2ed7e4716a563b072d20b64cf aborted prior to run
worker_command-1  | [INFO] 07:12:00: task open_valve ⊘ 4584e0d132df428eb4df23054ae5aea4 aborted prior to run
worker_command-1  | [INFO] 16:00:00: task close_valve ⊘ 8cc0a2fef3d345e1a001b83a5ae7e72e aborted prior to run
worker_command-1  | [INFO] 16:00:00: task close_valve ⊘ 0398d8ff550a4022a107003c59037928 aborted prior to run
worker_command-1  | [INFO] 16:00:00: task close_valve ⊘ bdd68ad7bee0490b98228359db64db9c aborted prior to run
worker_command-1  | [INFO] 16:00:00: task close_valve ⊘ a8315b4770854cec99c1ad00624ae7d1 aborted prior to run
worker_command-1  | [INFO] 16:00:00: task close_valve ⊘ db0afa8ceca94d69b107a1a21ee860ea aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ 51921047d5314f0cb8fed79c5fa6de21 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ 635b10e375964debb8eec597b67a04a2 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ 12ecda93aa47446484a1437f8722e082 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ 029f6bf257874c5ca0054f0d20e41a9d aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ 5764f3df2ae24c2c83de0c92f498997a aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ 1544d93be9c64274b32948635e3b370d aborted prior to run
worker_command-1  | [INFO] 04:00:00: task close_valve ⊘ 1c0200a0df9246bfa0b7b5bad5cd64a5 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ 5012ee641de8465784973102fa66dfe5 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task close_valve ⊘ 9039ecce38f04c5fa2dbba37678b4f60 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ 733d28d8d81a4bd4b4f5f6b6a3b7a80b aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ 8fd79dd35df849b2a1bfe06f0adc8227 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ 7964e6e0bec5449d830f598fcda18614 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ 895e6f62bbf34d1cbe71969370115e1c aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ 93f9f2f4233241a0aceeab3954621ac1 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ a3a97b8c223647a4b78160f386ca2cc6 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ c3119ab78ba14bca94a7c695d4b3bff1 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ e255f652659d464582a836cda0ced789 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ d1b39fc897cd4c35a9fff84dcbe89714 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ f55805d7baf6435987ff38942e9dbd96 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ a909b1721cb842faa53aca1e3a706625 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ f0ef7816ba7b44cea6a7117c63b6a2f5 aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ f15ba67a69b042aebe5b349b9f3e34be aborted prior to run
worker_command-1  | [INFO] 04:00:00: task open_valve ⊘ fefd8503a02c473b92396e18f9eddb75 aborted prior to run

I have no info on the task which aborted in the logs - I could find them on redis (via smembers streaq:worker_command:aborted) but I don't know much about why it aborted.

Shouldn't there be a log for this ?

I'm also surprised to see some arguments being updated in a strange way - is it due to streaq ?

{'f': 'open_valve', 'a': ('e805b707-e298-4e4e-b0ce-7a24ab97f288', '4829449e-7aa1-411b-a782-1420a6ef4251_4829449e-7aa1-411b-a782-1420a6ef4251#2'), 'k': {}, 't': 1758521600098}

{'f': 'open_valve', 'a': ('e805b707-e298-4e4e-b0ce-7a24ab97f288', '4829449e-7aa1-411b-a782-1420a6ef4251_4829449e-7aa1-411b-a782-1420a6ef4251#2'), 'k': {}, 't': 1758521610932}

{'f': 'close_valve', 'a': ('94ecea69-8871-4d53-a8ea-f1b5238101eb', 'bf752743-67ce-425a-9f12-767fb686beb5#2_4ec003a6-b9e3-4d1d-8974-fc3e596a16b7_bf752743-67ce-425a-9f12-767fb686beb5#3'), 'k': {}, 't': 1758563917428}

{'f': 'open_valve', 'a': ('94ecea69-8871-4d53-a8ea-f1b5238101eb', 'bf752743-67ce-425a-9f12-767fb686beb5#2_4ec003a6-b9e3-4d1d-8974-fc3e596a16b7_bf752743-67ce-425a-9f12-767fb686beb5#3'), 'k': {}, 't': 1758563917431}

It should be only:

{'f': 'open_valve', 'a': ('<uuid>', '<uuid>', 'k': {}, 't': <timestamp>}
{'f': 'close_valve', 'a': ('<uuid>', '<uuid>', 'k': {}, 't': <timestamp>}

The second argument should not be a composition of uuids (it may come from my side, I need to check) and having a #2 or #3 ; I don't see how it could be from my side. Maybe related to retry mechanism on streaq side ? But I would expect that arguments remain untouched from one execution to the other.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions