Benjamin-Loison / matrix-commander

simple but convenient CLI-based Matrix client app for sending and receiving
GNU General Public License v3.0
0 stars 0 forks source link

Support parallel execution #27

Open Benjamin-Loison opened 1 month ago

Benjamin-Loison commented 1 month ago

It seems to be particularly the case in Benjamin_Loison/youtube_push_notifications/src/commit/a68468adbc76fd6c095901c59dcefe053ef3b57b/subscribe_callback.php#L169, as content creators seem to plan YouTube video publication at rounded times.

Related to #24, 8go/matrix-commander/issues/31, #16 and OverClock3000/issues/3.

Benjamin-Loison commented 1 month ago

Got the error again while in theory there is the lock.

https://matrix.to/#/!sNARMdEsFZERaQAJzl:matrix.org/$eFF3mmKAwD7V35FOGhlpg-13q4OUua7U2ypMlmBuiYQ

Decrypted event source:

{
  "content": {
    "body": "New YouTube video: [MrBeast](https://www.youtube.com/@MrBeast): [Men Vs Women Survive The Wilderness For $500,000](https://www.youtube.com/watch?v=aRcUVhVlSHg)!",
    "format": "org.matrix.custom.html",
    "formatted_body": "<p>New YouTube video: <a href=\"https://www.youtube.com/@MrBeast\">MrBeast</a>: <a href=\"https://www.youtube.com/watch?v=aRcUVhVlSHg\">Men Vs Women Survive The Wilderness For $500,000</a>!</p>",
    "msgtype": "m.text"
  },
  "event_id": "$XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "origin_server_ts": 1725724815297,
  "room_id": "!XXXXXXXXXXXXXXXXXX:matrix.org",
  "sender": "@overclock3000:matrix.org",
  "type": "m.room.message",
  "unsigned": {}
}

Original event source:

{
  "content": {
    "algorithm": "m.megolm.v1.aes-sha2",
    "ciphertext": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "device_id": "ZYVTEFLTZL",
    "sender_key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "session_id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  },
  "origin_server_ts": 1725724815297,
  "sender": "@overclock3000:matrix.org",
  "type": "m.room.encrypted",
  "unsigned": {
    "membership": "join",
    "age": 20542285
  },
  "event_id": "$XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "room_id": "!XXXXXXXXXXXXXXXXXX:matrix.org"
}

https://matrix.to/#/!sNARMdEsFZERaQAJzl:matrix.org/$dwrV7iCYaCsiNAbn3-GFYWWqE8zs21CY8vhRcqKP2Mw

Decrypted event source:

{
  "type": "m.room.message",
  "content": {
    "msgtype": "m.bad.encrypted",
    "body": "** Unable to decrypt: DecryptionError: The sender's device has not sent us the keys for this message. **"
  }
}

Original event source:

{
  "content": {
    "algorithm": "m.megolm.v1.aes-sha2",
    "ciphertext": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "device_id": "ZYVTEFLTZL",
    "sender_key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "session_id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  },
  "origin_server_ts": 1725724817473,
  "sender": "@overclock3000:matrix.org",
  "type": "m.room.encrypted",
  "unsigned": {
    "membership": "join",
    "age": 20540109
  },
  "event_id": "$XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "room_id": "!XXXXXXXXXXXXXXXXXX:matrix.org"
}