Skip to content

biancaines/active-workflows

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Active workflows

Background

You are software developers at We Train Models. Finance wants more control of model training expenses in this cash-constrained time.

You are users of the most popular orchestration product company in the world, naturally. You've heard about active workflows, can you use them to help make the finance team happy?

Instructions

  • Fork and make PRs to this repo.
  • Use a folder for your group/room number.
  • Use whichever Prefect Cloud workspace your group wants.

Challenge 1

Finance wants to approve any manually approve any ml model training runs that will cost over $1k.

Make a flow that gets an estimated cost from one of the tasks (can be a hard coded value for this project) it calls and pauses for approval. If the request is approved, a task to train the model is called model training (dummy stub for this exercise).
For the first challenge, just take a string input and see if it matches "Approve".

This should be a "dumb" example that doesn't cover any edge cases.

Challenge 2

Extend/modify your code from Challenge 1. Make a new code file. Make the default string value "Approve".

Challenge 3

Extend/modify your code from Challenge 2. Make a new code file. Make the approver's options either "Approve" or "Disapprove".

Challenge 4

Extend/modify your code from previous challenges. Make a new code file. Make the approver's options either "Approve" or "Disapprove". If the request is approved the approver needs to then enter a 7 digit authorization code with no zeroes. Why? Don't ask. Zeroes look too much like the letter O for these folks, one was burned in a password incident years ago, idk.

Validate that authorization code meets the criteria in the UI - not in later Python code.

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%