Exercises / prod
Kill the job at max_usd
tick(job, step_usd, cap) adds usd and returns MAX_USD when the cap is crossed. Print an ok tick then a kill.
Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.
Exercises / prod
tick(job, step_usd, cap) adds usd and returns MAX_USD when the cap is crossed. Print an ok tick then a kill.
Run to execute this in your browser. Nothing is sent to a server.