Git Product home page Git Product logo

Comments (14)

creecros avatar creecros commented on June 13, 2024 1

I'll take a look tomorrow.

edit: this week, just haven't had the chance just yet.

from automaticactionux.

aljawaid avatar aljawaid commented on June 13, 2024

@creecros could you kindly shed any light on this?

from automaticactionux.

aljawaid avatar aljawaid commented on June 13, 2024

thanks for the update

from automaticactionux.

creecros avatar creecros commented on June 13, 2024

remove the + 1
$systemTriggerCounter = $this->text->contains($action['event_name'], 'task.cronjob.daily') ;

and it works just fine now.
image

from automaticactionux.

creecros avatar creecros commented on June 13, 2024

Also, that said:

$userTriggerCounterResult = (count($actions)) - $systemTriggerCounter;

This line is an issue if there are no actions. Since $systemTriggerCounter is undefined if it does not go through the for each loop. Just define it before the loop somewhere, i.e. $systemTriggerCounter = 0; or conditionally prevent this line and any others that have these undefined variables if there are no actions.

from automaticactionux.

creecros avatar creecros commented on June 13, 2024

And you also need to remove the +1 here:

$systemTriggerCounter = $this->text->contains($action['event_name'], 'task.cronjob.daily') + 1;

from automaticactionux.

aljawaid avatar aljawaid commented on June 13, 2024

@creecros ok perfect thanks so much for that, I will make the changes shortly.

I added you to my glancer plugin... hoping you could help with the comment id search function pretty pretty please

from automaticactionux.

aljawaid avatar aljawaid commented on June 13, 2024

remove the + 1 $systemTriggerCounter = $this->text->contains($action['event_name'], 'task.cronjob.daily') ;

and it works just fine now. image

I applied your changes, still doesnt work on my side.... i got 2 background jobs and it counts total as one... the final count is correct, just the user/cron split seems weird

image

from automaticactionux.

aljawaid avatar aljawaid commented on June 13, 2024

Reopened as it still doesnt count the cronjobs right, but you can see the changes i made now in the commit

from automaticactionux.

creecros avatar creecros commented on June 13, 2024

hmm, worked perfect for me, ill take another look sometime this week. too late for me now.

from automaticactionux.

aljawaid avatar aljawaid commented on June 13, 2024

hmm, worked perfect for me, ill take another look sometime this week. too late for me now.

yeh cool, thanks alot...

from automaticactionux.

creecros avatar creecros commented on June 13, 2024

So ya, Test project 1 is fine, but Test project 2 is off...
https://www.nachostudio.ml/dashboard

from automaticactionux.

creecros avatar creecros commented on June 13, 2024

oh...duh.

$this->text->contains is a boolean.

from automaticactionux.

aljawaid avatar aljawaid commented on June 13, 2024

oh...duh.

$this->text->contains is a boolean.

ok i missed that from the countless snippets, howtos and tutorials i go through lol.... but thanks for this fix also!

from automaticactionux.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.