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

Adding API jobs via Coravel pro #394

Open
ratanservegar opened this issue Jul 15, 2024 · 2 comments
Open

Adding API jobs via Coravel pro #394

ratanservegar opened this issue Jul 15, 2024 · 2 comments
Assignees

Comments

@ratanservegar
Copy link

Hi,

I was looking into Coravel pro dashboard and I see that you can add jobs via the dashboard, But I am unsure how i can add jobs that are basically API's that need to be triggered (windows task scheduler kinda).

If someone can help me out or point me at a guide/example that would be really helpful.

@jamesmh
Copy link
Owner

jamesmh commented Jul 15, 2024

I might not totally understand the question, but from what I understand, here's how you would do it:

  1. Create (in code) an IInvocable (docs here) the same way that you would for using the Coravel scheduler, etc.
  2. IIn the Invoke() method, you add your logic that would make a request to an API or anything else you need to do.
  3. That new invocable should show up on the Coravel Pro dashboard to either schedule or execute as a one-off job.

If you want, with Coravel Pro you can schedule and execute the invocable ad-hoc if you desire.

Does that help?

@ratanservegar
Copy link
Author

Hi @jamesmh,

Thanks for your response, basically what I want to do is add a new job via the front end which adds the API URL to the database and then calls it based on the schedule you set. I don't want to make code changes in order to add a new job.

@jamesmh jamesmh self-assigned this Aug 2, 2024
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