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

Does cdule support the following capabilities ? #2

Open
bhushanibm opened this issue Aug 3, 2022 · 8 comments
Open

Does cdule support the following capabilities ? #2

bhushanibm opened this issue Aug 3, 2022 · 8 comments

Comments

@bhushanibm
Copy link

1).Lets say if we register some job whose time is elapsed, does it trigger those jobs whose time have elapsed or it will only trigger for next iteration ? If this library is used in Kubernetes Env, it would get packaged as part of Docker pod. There might be case where the pod might be down might be for some patch upgrade. During those scenario when the pod comes back, will it trigger those jobs which were scheduled when pod was down ? This is more on clarification for my earlier question no 2.

  1. Does it support job which are scheduled in timezone which has daylight scheme in to effect ? When I say timezone support, I mean let say the kubernetes env which is running in asia pacific timezone. Does it support recurring daily jobs to run with US timezone and also support daylight for those job where in library modifies the trigger time based on its effect ?
    3)Lets says if cdule is used in Kubernetes and is packaged along with pod. If scaling of pod happens, does job gets triggered multiple times ?
  2. Is there any limit on number of concurrent jobs which can be triggerred?
@bhushanibm
Copy link
Author

@deepaksinghvi :- Can you please respond to above queries if we are still actively pursuing the library ?

@deepaksinghvi
Copy link
Owner

Hello @bhushanibm thanks for your queries.

  1. If a job is elapsed, only the next cycle jobs will be picked and triggered. If we pod comes back it gets registered and from that time onwards it will pick the job if they are eligible to be executed.
  2. No it works on the UTC, so anytime it gets added it will be converted and will execute at that time.
  3. About the limit it's not been evaluated yet. Some of the open items are mentioned here. https://github.com/users/deepaksinghvi/projects/1

Please do let me know if there is anything you need that is a blocker so I can try to add it quickly.

@deepaksinghvi
Copy link
Owner

deepaksinghvi commented Aug 3, 2022

@bhushanibm please check the demo here https://www.youtube.com/embed/lsgUQdU9CX4 and more details in the wiki https://github.com/deepaksinghvi/cdule/wiki

@bhushanibm
Copy link
Author

bhushanibm commented Aug 3, 2022

  1. Do we support execute only once type of job ?
  2. Does the above demo demonstrates that we can achieve distributed scheduling where in the job will be triggered in one of the pod and it will not be triggerred in other pods ? If so how it is achieved ?
  3. We are also looking for support to nosql database such as mongodb is there a plan to support it ?

@bhushanibm
Copy link
Author

@deepaksinghvi :- Can you please respond to above queries when you have some time?

@deepaksinghvi
Copy link
Owner

  1. Yes only once by a pod out of all for a job, the user can add multiple jobs as you can see in the example.
  2. Yes it takes care of the distributed scheduling.
  3. Currently NoSQL is not supported but should be easy to add it. If you want to add support for it then please go ahead in a similar way as the other user has added support for MySQL Adding support for MySQL DB #1 else I will plan to add it later.

@apuatcfbd
Copy link
Contributor

Hello @deepaksinghvi thank you for above information. I just wondering if it is possible to schedule job for once with delay. Like: schedule jobA to be executed 30 minutes later. or by a date like jobB for 2024-11-23 16:18:36 ?
These jobs are for onetime execution, no recurring wanted.

@deepaksinghvi
Copy link
Owner

Hello @deepaksinghvi thank you for above information. I just wondering if it is possible to schedule job for once with delay. Like: schedule jobA to be executed 30 minutes later. or by a date like jobB for 2024-11-23 16:18:36 ? These jobs are for onetime execution, no recurring wanted.

Yes @apuatcfbd that would be possible, its a matter of writing the cron expression.

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

3 participants