Giter Site home page Giter Site logo

Background / Cron jobs about coolify HOT 9 CLOSED

coollabsio avatar coollabsio commented on August 16, 2024 17
Background / Cron jobs

from coolify.

Comments (9)

Flexicon avatar Flexicon commented on August 16, 2024 4

Big bump on this one.

If we could get a service, that would allow anything as basic as just running tasks on a schedule similarly to how both Dokku and Heroku, then that would be fantastic.

from coolify.

andrasbacsai avatar andrasbacsai commented on August 16, 2024

Cron jobs were in scope, initially, but I'm thinking of creating a separate service for it that you can install in Coolify with one click. So it won't be part of Coolify but could be installed as, for example, Plausible Analytics.

From the user's point of view, it's the same, but it's a bit cleaner IMO from the developer's point of view.

What do you think of this?

from coolify.

badlanguage avatar badlanguage commented on August 16, 2024

I think it would be best to have it deeply integrated as a first party service rather than an addon, since it is coming directly from you and as you say it is in the scope, and it is more of a functionality rather than an app / service (as it comes under the scope of the project).

from coolify.

badlanguage avatar badlanguage commented on August 16, 2024

Just a quick thought, if ( #45 ) is to be accepted, integrating cron jobs would be fairly straight forward via the K8s API (https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/).

from coolify.

Soneji avatar Soneji commented on August 16, 2024

Cron jobs were in scope, initially, but I'm thinking of creating a separate service for it that you can install in Coolify with one click. So it won't be part of Coolify but could be installed as, for example, Plausible Analytics.

From the user's point of view, it's the same, but it's a bit cleaner IMO from the developer's point of view.

What do you think of this?

Hi @andrasbacsai

I'd love to help develop a cron service, and I think it would be good to have it as a separate part, easily enabled with one click. Would you be able to point me in the direction of any resources to help create a service or projects for existing services

from coolify.

badlanguage avatar badlanguage commented on August 16, 2024

@andrasbacsai Just noticed (https://github.com/coollabsio/coolify/projects/1#card-63415453), is the plan to still use Agenda for v2? If you are planning to K8s integration background jobs can easily be achieved via the Kubernetes API (https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/)

from coolify.

jugglingjsons avatar jugglingjsons commented on August 16, 2024

I am not sure if I am misunderstanding the use cases here but you can both schedule workflows to run in n8n.io and run crontab in docker container currently.
https://docs.n8n.io/courses/level-one/chapter-5/chapter-5.7/

I agree it would be nice to use regular cron as well, but have you guys considered if there are alternatives? Unless you are talking about server related stuff / admin stuff that needs access to the instance it can be done fairly easily with custom docker application.

from coolify.

Flexicon avatar Flexicon commented on August 16, 2024

@jugglingjsons so I haven't looked into n8n.io before this, so thank you I'll take a look.

That said, my specific use case is exactly as what the Heroku and Dokku platforms offer as I've linked above. That is to say I need to run a specific command on my application/container at a given time schedule. This could be anything from running my application with a different argument, or in a Rails-like environment running things like rake tasks.

Would that be something I would be able to achieve with n8n.io ? I'm pretty sure the answer is no, but I'd love to be proven wrong.

Note: while I'm also aware that I could simply add a crontab configuration to my application docker container, I prefer the way other platforms handle this in that the scheduled action is performed in a separate "one-off" container instance / process.

from coolify.

andrasbacsai avatar andrasbacsai commented on August 16, 2024

I'm closing this issue, because tracking features will be moved to GitHub discussions. Github issues will be only for bugs.

Version 4 is in full focus. v3 related issues will be closed, if it is not a critical bug.

Thanks for your understanding.

from coolify.

Related Issues (20)

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.