Skip to content

Conversation

@skarakuzu
Copy link
Collaborator

No description provided.

pass


def submit_job(self):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this evolves, it's worth keeping an eye on whether this actually needs any instance state (i.e. self.<X>). If not, it could just be a simple function, rather than a method, and that would make it simpler to test.

"Authorization": f"Bearer {bearer_token}"
}

response = requests.post(url, headers=headers, json=payload)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use a stateful client instance (and httpx) as mentioned in Slack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants