Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Link Kala to a Rest Url or Golang Function instead of bash command #128

Closed
DNadar opened this issue Sep 23, 2016 · 2 comments
Closed

Comments

@DNadar
Copy link

DNadar commented Sep 23, 2016

Hi,

My requirement is a time Scheduler which will trigger a Rest API (URL) or a golang Func which could execute after a particular interval just like sending emails, purging Old DB records etc.

Any possible ways as i don't see any examples.

  • DNadar.
@ajvb
Copy link
Owner

ajvb commented Sep 27, 2016

This was discussed within #73

Basically, no not at the moment. I have decided not to support calling a Go function, but am willing to support non-exec.Cmd jobs (e.g. hitting a REST API or running a Docker container).

At the moment, the only supported command is a sh/bash command. The easiest way to do this is to write a script that does whatever you want and just call it via Kala.

@ajvb
Copy link
Owner

ajvb commented Feb 12, 2017

With #139 merged, you can now have an HTTP request as your job.

@ajvb ajvb closed this as completed Feb 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants