Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Apr 29 15:35

    dependabot-preview[bot] on add-v2-config-file

    Upgrade to GitHub-native Depend… (compare)

  • Mar 23 22:12

    victorcoder on v3.1.6

    (compare)

  • Mar 23 22:12

    victorcoder on master

    Update CHANGELOG (compare)

  • Mar 23 22:03

    victorcoder on master

    Use go embed for assets embeddi… (compare)

  • Mar 23 22:03

    victorcoder on use_embed

    (compare)

  • Mar 23 21:57

    victorcoder on use_embed

    Including assets in the project (compare)

  • Mar 23 21:47

    victorcoder on use_embed

    Use go embed for assets embeddi… (compare)

  • Mar 22 21:31

    victorcoder on go_modules

    (compare)

  • Mar 22 21:31

    victorcoder on master

    chore(deps): bump github.com/Sh… (compare)

  • Mar 22 21:08

    victorcoder on master

    Provide filter query by job dis… (compare)

  • Mar 21 11:12

    victorcoder on go_modules

    (compare)

  • Mar 21 11:12

    victorcoder on master

    chore(deps): bump github.com/si… (compare)

  • Mar 21 11:12

    victorcoder on master

    UI fixes (#926) * Fix name of … (compare)

  • Mar 21 10:58

    victorcoder on master

    Correct title of NATS executor … (compare)

  • Mar 15 08:17

    dependabot-preview[bot] on go_modules

    chore(deps): bump github.com/si… (compare)

  • Mar 14 23:24

    dependabot-preview[bot] on go_modules

    chore(deps): bump github.com/Sh… (compare)

  • Mar 14 22:40

    victorcoder on master

    Fix XSS vulnerability (#922) *… (compare)

  • Mar 14 17:41

    victorcoder on master

    feat(ui): add a filter on disab… (compare)

  • Mar 10 12:28

    victorcoder on gh-pages

    Update documentation (compare)

  • Mar 09 08:39

    victorcoder on v3.1.5

    (compare)

Victor Castell
@victorcoder
it seems, under certain conditions, serf was silently loosing ~1-2% of the executions distribworks/dkron#744 specially with high volumes of simultaneous starts
Filipe Pina
@fopina
ah so definitely that, I won't open new ticket then :)
I guess that jenkins HASH schedule would have helped us prevent this
Filipe Pina
@fopina
@victorcoder what do you think about an "evacuate" mode for agents? something like there is cloud infrastructure or docker swarm: mark an agent so it doesn't start more jobs without killing (so it finishes running what is there)?
haven't looked into those bits, not sure how easy that would be (or if it makes sense)
an easy hack would be to be able to remove the selection labels (if they are used, such as in my use case). that would actually be something more generic: update node labels in runtime
Filipe Pina
@fopina
and off-topic, with v3 there isn't a starting job anymore apparently, can't easily take the jobs that were actually executed unless they have output :(
Victor Castell
@victorcoder
you mean in the logs?
Filipe Pina
@fopina
yes
nothing in the agent log (without debug) when picking a up a job I think
Victor Castell
@victorcoder
maybe it got lost with all the refactor, would be nice to re-add it
Victor Castell
@victorcoder
but you can use the grpc.agent_run statsd metric to get the same info
Filipe Pina
@fopina
with dkron2 I was taking lists from the log aggregation to track which jobs were missed, not only how many. But I'll take a look at the statsd metric, if it matches, I don't need to know which :)
my 2 PRs should be clean enough, if you want to take a look :P
Victor Castell
@victorcoder
done @fopina
Shiva Prasad G
@shivaprasad573
Hello, I am trying to run a job on every first monday of the month. I have generated a cron expression as 0 0 12 ? 1/1 MON#1 * but this is not working in DKron. Please can anyone help to achieve this?
Victor Castell
@victorcoder
I think you can not do that in Dkron cron spec syntax, try with this solution https://ngelinux.com/how-to-schedule-a-cron-to-execute-on-first-monday-of-every-month/
Filipe Pina
@fopina
Hey @victorcoder have you considered moving the plugins to normal go plugins (now that they exist)?
As the gRPC is not really used for remote, it could probably simplify the code a lot :)
Victor Castell
@victorcoder
Sadly @fopina native go plugins do not work in all platforms, Windows, and I have the impression that they doesn't offer same functionality
Though I'm always trying to find an alternative for the current grpc plugins
I will replace them sooner or later
Filipe Pina
@fopina
Makes sense, sorry. I’ll ping if i come across anything
amitdaalwal
@amitdaalwal
Hi was wondering anyone managed to add login for the UI with different auathenication in opensource dockerfile. Dont want a licence one.
Filipe Pina
@fopina
Put any httpd in front of it (like nginx or traefik) and use basic auth there. Plenty of tutorials out there (for any backend service)
If too complicated, probably worth supporting viktor and the project by buying the licence :)
Victor Castell
@victorcoder
it's pretty straightforward with nginx, thx @fopina :heart:
amitdaalwal
@amitdaalwal
Thanks Victor, fopina. By default i see one server and agent is up. I tried to run "docker-compose up --scale dkron-server=3" when refresh the dashboard still there is single server and single agent. I would like to spin up more nodes or server when there is more load. Not on K8.
amitdaalwal
@amitdaalwal
ok got it i added dkron along with dkron server, dkron agent in my compose. now i can scale. Is there any options i can create Jobs under PROJECT A , PROJECT B for quick filter
Victor Castell
@victorcoder
@amitdaalwal there is no concept of projects in Dkron, I usually use prefixes to the jobs project1-job1
amitdaalwal
@amitdaalwal
Will use as mentioned. Thanks Victor
amitdaalwal
@amitdaalwal
at present i got a singlevm with two dkron servers in docker. I have cronjobs 100 for downloads files with cpu intensive tasks. Is it best to run this inside dkron dockr agent or in vm as systemd dkron agent. Dont see any option to autoscale based on cpu unless shell script. Any suggestions.
amitdaalwal
@amitdaalwal
Hi i have a volume mount in compose. when i do compose down loosing all jobs. on latest version. saw this issues but dont find the issue here.
amitdaalwal
@amitdaalwal
my compose file, what i am missing here. loosing all jobs when doing down. https://privatebin.net/?72f7e679a5ef28d4#iSAfBMRnhxhCmPpCHJfsmUWvuciJBgdRBAu673SkEPg
Victor Castell
@victorcoder
New React admin based UI released in v3.1.0, let me know if you like it
Filipe Pina
@fopina
Tried to pull the image yesterday on my swarm, but it wasn’t available, seems it still isn’t :/
Victor Castell
@victorcoder
@fopina The release build failed at the docker build step for some reason, I'm building and pushing by hand
done
Filipe Pina
@fopina
@victorcoder funny thing: running test runForElection on my Mac (not docker) kills it and requires reboot!
Victor Castell
@victorcoder
wtf! that is really weird
Charlie
@zhouchunli
hi, is there anybody tell me how to deploy dkron in k8s?
Charlie
@zhouchunli
could dkron support broadcast?
Victor Castell
@victorcoder
@zhouchunli for using Kubernetes you could try using something provided here distribworks/dkron#704
@zhouchunli what do you mean "broadcast"?
amitdaalwal
@amitdaalwal
Hi i have setup a job for downloads hourly i see the next same job is starting before completing the current one. its causing the rest of same jobs to keep running in queue. Is there any example config i can use to schedule the next hourly job only after sucessful execution of previous one
Filipe Pina
@fopina
you can “hack” around by using the API to update the job itself but maybe if you disable allow_concurrent it will behave as you’d like (if new schedule comes while the other is still running, it’s ignored)
Ariel Orozco
@arielcr
Hi! Is it possible to add a Dkron installation on my own docker-compose.yml file? Will this work?
  dkron:
    container_name: dkron
    image: dkron:latest
    ports:
      - 8086:8086
    command: dkron agent --server --log-level=debug --bootstrap-expect=1
    networks:
      - mynetwork
RyanHuang1102
@RyanHuang1102
anyone can check this issue? please git me a hint
distribworks/dkron#940
Victor Castell
@victorcoder
@arielcr take a look to the included compose file in the repo https://github.com/distribworks/dkron/blob/master/docker-compose.yml#L13-L21, but for single node it looks like it will work
@RyanHuang1102 I will respond in GH