04 Dec 2024 12:23 PM - last edited on 06 Dec 2024 07:45 AM by MaciejNeumann
[
{
"Id": "Workers-22",
"SpaceId": "Spaces-1",
"timestamp": "2024-12-04T11:39:52.487000000Z",
"HealthStatus": "HasWarnings",
"StatusSummary": "This machine is running an old version of Tentacle (6.1.1403).",
"WorkerPoolIds": [
"WorkerPools-42"
],
"OperatingSystem": "Microsoft Windows Server 2019 Standard 10.0.17763.0",
"HasLatestCalamari": true
},
06 Dec 2024 08:46 AM
Hi,
from an Automation/Workflow perspective, this seems to be working as expected.
I believe you have an error in a DQL statement of a preceeding task - could you verify that the share this DQL statement is working as expected, e.g., via a Notebook?
Feel free to share the DQL Workflow Task with us, if you need further help.
06 Dec 2024 10:30 AM
Here is the DQL task I am trying to access:
fetch logs
| filter contains(log.tag, "octopus_workers")
| parse content, "JSON:json"
| fieldsFlatten json
| expand json.content
| fieldsFlatten json.content
| expand json.content.alertText
| fieldsFlatten json.content.alertText
| fields timestamp, Id=json.content.alertText.Id, SpaceId=json.content.alertText.SpaceId, WorkerPoolIds=json.content.alertText.WorkerPoolIds, HealthStatus=json.content.alertText.HealthStatus, HasLatestCalamari=json.content.alertText.HasLatestCalamari,StatusSummary=json.content.alertText.StatusSummary, OperatingSystem=json.content.alertText.OperatingSystem
Here is a sample of the logs ingested before that DQL is run:
{
"alertText": [
{
"Id": "Workers-22",
"SpaceId": "Spaces-1",
"WorkerPoolIds": [
"WorkerPools-42"
],
"HealthStatus": "HasWarnings",
"HasLatestCalamari": true,
"StatusSummary": "This machine is running an old version of Tentacle (6.1.1403).",
"OperatingSystem": "Microsoft Windows Server 2019 Standard 10.0.17763.0"
},
{
"Id": "Workers-23",
"SpaceId": "Spaces-1",
"WorkerPoolIds": [
"WorkerPools-42"
],
"HealthStatus": "HasWarnings",
"HasLatestCalamari": false,
"StatusSummary": "This machine is running an old version of Tentacle (6.1.1403).",
"OperatingSystem": "Microsoft Windows Server 2019 Standard 10.0.17763.0"
},
Here is what that DQL looks like when run from a notebook:
06 Dec 2024 11:18 AM
From what I can see, everything looks fine for the Workflow.
I tried to reproduce your error, and I am able to do that by providing an Invalid DQL Statement in the DQL task:
Could you check the actual input of the DQL task? Are you using an expression somewhere in that task?
09 Dec 2024 10:43 AM
Hi Christian,
I shared this above, but here is the input from the task that fails trying to access records from previous task:
09 Dec 2024 03:15 PM
In this case, you're trying to Preview something using the result of the task unhealthy_workers_table. That's a separate topic. Could you share a screenshot of a recent failing execution, showing which task failed and with what error message? Feel free to remove / gray out classified information on the screenshot.
I still believe there is something wrong with the DQL statement in that task, and a screenshot would help.