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

Ability to trigger cron job via swarm-cronjob cli #281

Open
ieugen opened this issue Oct 9, 2023 · 2 comments
Open

Ability to trigger cron job via swarm-cronjob cli #281

ieugen opened this issue Oct 9, 2023 · 2 comments

Comments

@ieugen
Copy link

ieugen commented Oct 9, 2023

Description

Hi,

I think it would be very useful to have the ability to trigger a job via swarm-cronjob cli.
This should be useful for manual triggering of jobs for testing the job will work properly.

I think a cli like would do the trick

swarm-cronjob run job_name 

where job-name is the name of the service implementing the job.

@ieugen
Copy link
Author

ieugen commented Nov 1, 2023

To clarify (if needed), I am suggesting users could exec into the swarm-cronjob container and run the cli from there.

@ieugen
Copy link
Author

ieugen commented Nov 2, 2023

Another idea is to use a swarm-cronjob cli that can talk with a swarm-cronjob API ?!
This would be better than the exec option since docker exec does not work in swarm - you need to connect to the node first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants