Development Check List¶
This page is a simple check list to double-check that you have done all the steps you needed.
- You set up the virtual environment and are inside of the virtual environment - Link
- You installed the requirements - Link
- You created (or your deployment script places) your Worker Ship Python package under
src/starfleet/worker_ships/plugins/
- Link - Your Worker Ship Plugin has a configuration schema that is a subclass of
WorkerShipBaseConfigurationTemplate
- Link - Your Worker Ship Plugin has a payload template schema that is a subclass of
WorkerShipPayloadBaseTemplate
(this includes the account and account/region base classes) - Link - Your Worker Ship Plugin contains a class that subclasses
StarfleetWorkerShip
and configures it with all the required components, like the schemas, and also implements theexecute
function to do the thing that needs to be done - Link - You created a
lambda_handler
function that is wrapped by the@worker_lambda
decorator - Link - You created a
click.group
decorated function, and also some CLI commands for that group - Link - In your plugin package's
__init__.py
, you defined bothWORKER_SHIP_PLUGINS
set to a list of theStarfleetWorkerShip
classes you defined - Link - In your plugin package's
__init__.py
, you defined bothCLICK_CLI_GROUPS
set to a list of theclick.group()
decorated functions you defined - Link - You made extensive pytest tests for your Worker Ship Plugin with nice fixtures 100% test coverage. Yes 💯% test coverage! See the existing tests for details on how to make good tests.
- You created (or your deployment script places) your Starfleet configuration with the proper configuration entries in
src/starfleet/configuration
- Link - You made the necessary changes to the SAM Template for your Lambdas to get deployed (don't forget to update the configuration to include the SQS URLs!) - Link
- Your payload template resides in the template S3 bucket where your worker expects it
- Make sure your Lambda has enough time and memory to run. You'll need to monitor the logs to see how much RAM and time it takes to run your workload to make adjustments in the SAM template.
There are probably more but this should help you isolate and detect issues should they arise.