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

Parent Child jobs #27

Open
thoven87 opened this issue Sep 14, 2024 · 0 comments
Open

Parent Child jobs #27

thoven87 opened this issue Sep 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@thoven87
Copy link
Contributor

The need for parent child job

Say you are a retailer and sell products online:
We should be able to support the following flow

Order placed -> Payment processed -> Update inventory -> Ship -> Send Email.

One would need at least three jobs to complete the above workflow. The above could be accomplished with pub sub, but I think there are many more use cases where a batch flow is more natural.

How do we represent this flow in swift jobs?

Update Inventory Job
-> Process Shipping Job
-> Notification Job

In the upcoming user interface, the DAG can be represented as follow

Update Inventory Job  -> Process Shipping Job -> Notification Job

All three jobs can be scheduled run daily, hourly e.t.c and would be chained.

@thoven87 thoven87 added the enhancement New feature or request label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant