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 run lambdas periodically? #4

Open
biozz opened this issue Jan 9, 2021 · 1 comment
Open

How to run lambdas periodically? #4

biozz opened this issue Jan 9, 2021 · 1 comment
Labels
good first issue Good for newcomers

Comments

@biozz
Copy link

biozz commented Jan 9, 2021

Hi!

I would like to run some of my lambdas periodically and it seems there is no straightforward way to do that. What I did was I created a ping action, which curls lambda url and thus invokes it.

ping:
	curl https://my.function.url/

This is a hacky solution, but what is the intended way?

Is it possible to add launcher as an action into the scheduler?

Screenshot 2021-01-10 at 01 25 44

ping action on the screenshot is what I use right now and run is what I would like to have

@reddec
Copy link
Owner

reddec commented Jan 25, 2021

My apologies for the delay reply.

Create a target in Makefile that will run your script. For example, for python:

run:
	echo '{}' | ./venv/bin/python3 app.py

In echo you may use any payload. Than use run as an action in scheduler. Exact command you may find in a Launcher tab.

It will be nice to have some 'sugar' for the convenience, but right now it's not in a backlog, however, PR will be appreciated.

@reddec reddec added the good first issue Good for newcomers label Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants