Comments (1)
You can structure the code of "Job B" and "Job A" into python functions that are agnostic to ndscheduler. "Job dependency" is achieved by simply calling python functions :)
For our production system, we use ndscheduler together with taskworker, and we also opensource taskworker
When ndscheduler schedules a job, it actually publishes a message to Amazon SQS, then one of taskworker processes would pick up the message from SQS and does the actually work.
When "A runs every 5 minutes and B runs immediately after A", then A is a job scheduled by ndscheduler, while B is not. Both A and B are tasks that run on taskworker. We trigger B from the code of A. Here's the sequence:
- ndscheduler triggers A and publishes a message to SQS, containing the python class of A and the corresponding arguments passed to the python class in that message.
- taskworker fetches the message of A from SQS and runs the corresponding python class of A.
- In the python class of A, it publishes another message to SQS, containing the python class of B.
- taskworker fetches the message of B from SQS and runs the corresponding python class o B.
from ndscheduler.
Related Issues (20)
- Info; ndscheduler make simple fail HOT 2
- make simple fails possibly due to problem with virtualenv version HOT 1
- The Jobs-Site sorts the "Job Name" Column wrong HOT 1
- Maintained? HOT 1
- Missing argument "db_tablenames" with APScheduler
- possible error in ndscheduler/server/server.py
- No versioning
- UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 74: ordinal not in range(128)
- Getting Job Name? HOT 4
- Job Name - Again HOT 1
- Adding Custom Fields to Job in Web UI
- Jobs stuck at "running" HOT 2
- Run job every 15 seconds
- Cannot run a job with the rest api
- No data validation hangs scheduler.
- Not able to use MySQL HOT 1
- How To auto-reload or restart scheduler without error Address already in use HOT 1
- Confusing licence badge on README.md HOT 1
- Unable to run manual settings rather than default settings HOT 1
- Conflict with Notebook package in the same environment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ndscheduler.