Skip to content

feat: add --discord notification channel to subscription command#7

Open
Tankman61 wants to merge 2 commits into
mainfrom
subscription-discord-channel
Open

feat: add --discord notification channel to subscription command#7
Tankman61 wants to merge 2 commits into
mainfrom
subscription-discord-channel

Conversation

@Tankman61

Copy link
Copy Markdown
Member

Description

Adds a --discord flag to watcloud subscription so users can be notified on Discord (via a webhook URL) instead of email when a SLURM job completes.

  • watcloud subscription <job_id> <email> — unchanged (email)
  • watcloud subscription <job_id> --discord <webhook_url> — new (Discord)

The API client now sends {job_id, channel, target} to the slurm-status-monitor /subscribe endpoint. Pairs with the server-side support in WATonomous/infra-config#5422 (which added the channel column and Discord routing).

A user creates a webhook in their own Discord channel (Edit Channel → Integrations → Webhooks → New Webhook → Copy URL) and passes it via --discord.

Tested: go build and go vet clean; --discord appears in subscription --help.

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.

1 participant