Skip to content

taljaards/Prefect-2.0-code-contest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My entry to the Prefect 2.0 Code Contest launched just after Prefect 2.0's General Availability release.

This flow combines two things I have a strange fondness of:

  • Prefect flow run names
  • Craiyon ("DALL·E mini") images

The flow takes the 5 latest flow run names and uses them as prompts for Craiyon.

Though not really identifying any Prefect edge cases, it's an example of using:

  • Using native Python inside a flow
  • Using Prefect's logger
  • Mapping
  • .submit()
  • Interacting with PrefectFutures
  • Interacting with the API
  • Caching
  • Task concurrency limits

Most outputs come out "normal", Craiyon cannot always figure out how to match the adjectives to the animals. Now and then surprises pop up, for example classic scorpion:

More examples are available here: https://lensdump.com/a/1FZ4C

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Languages