CMD-S | A simple save plugin for WordPress | Content Management System library
kandi X-RAY | CMD-S Summary
kandi X-RAY | CMD-S Summary
A simple save plugin for WordPress
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- wrap key event handler
CMD-S Key Features
CMD-S Examples and Code Snippets
Community Discussions
Trending Discussions on CMD-S
QUESTION
I have a task inside an Azure Pipeline Job which is failing. In my case the fail of the task isn't important so I want to know if it is possible to skip the failed task and execute the following tasks normally, without marking the whole Job as Failed or Partially Succeeded. I want the Job to still be a Success if the other Tasks were executed properly.
The pipeline is executed manually and the task in question commits a git repository via a CMD-Script. The Job downloads the repository, rewrites some files inside, and then commits and pushes it. The rewritten files might end up with the same content as before, therefore git does not recognize any changes and the commit fails.
The task:
...ANSWER
Answered 2022-Mar-30 at 21:45Beside continueOnError: true
, you can try a script which returns 0:
QUESTION
I am running docker in a Raspberry Pi 3 Model B Plus Rev 1.3, running Raspberry pi OS with all packages up to date.
TL;DR
The healthchecks on a given container works fine for some time (around 30 min, some times less some times more), but at some point they get "stuck" and so the container remains healthy, even though it is not the case. Is there a way to debug what's going on with the healthchecks and so try to figure out what is happening?
the healthcheck is not configured in the Dockerfile, but instead in the yml file I use to deploy the stack as follows
...ANSWER
Answered 2022-Mar-15 at 17:16This issue appears to no longer be happening. I upgraded to Raspbian bullseye, and healthchecks have been running for a week straight, without issues.
QUESTION
To preface I'm fairly new to Docker, Airflow & Stackoverflow.
I've got an instance of Airflow running in Docker on an Ubuntu (20.04.3) VM.
I'm trying to get Openpyxl installed on build in order to use it as the engine for pd.read_excel
.
Here's the Dockerfile with the install command:
...ANSWER
Answered 2022-Mar-03 at 15:56We've had some problems with Airflow in Docker so we're trying to move away from it at the moment.
Some suggestions:
- Set the version of openpyxl to a specific version in requirements.txt
- Add openpyxl twice to requirements.txt
- Create a
requirements.in
file with your main components, and create arequirements.txt
off that using pip-compile. This will add subcomponents too - Try specifying a python version as well
Hopefully one of these steps will help.
QUESTION
I was referring to example given in the elasticsearch documentation for starting elastic stack (elastic and kibana) on docker using docker compose. It gives example of docker compose version 2.2 file. So, I tried to convert it to docker compose version 3.8 file. Also, it creates three elastic nodes and has security enabled. I want to keep it minimal to start with. So I tried to turn off security and also reduce the number of elastic nodes to 2. This is how my current compose file looks like:
...ANSWER
Answered 2022-Feb-25 at 08:04Try this :
QUESTION
So in my case I've previously ran Airflow locally directly on my machine and now I'm trying to run it through containers using docker while also keeping the history of my previous dags. However I've been having some issues.
A slight bit of background ... when I first used docker-compose to bring up my containers airflow was sending an error message saying that the column dag_has_import_errors
doesn't exist. So I just went ahead and created it and everything seemed to work fine.
Now however my dags are all broken and when I modify one without fixing the issue I can see see the updated line of code in the brief error information that shows up at the top of the webserver.
However when I resolve the issue the code doesn't change and DAG remains broken.
I'll provide
this image of the error
this is the image of the code\
also the following is my docker-compose file (I commented out airflow db init but may I should have kept it with the db upgrade parameter as true? My compose file is based on this template\
...ANSWER
Answered 2022-Feb-03 at 21:40LETS GOOOOOOOOOO!
PAN COMIDO!
DU GATEAU!
Finally got it to work :). So the main issue was the fact that I didn't have all the required packages. So I tried doing just pip install configparser
in the container and this actually helped for one of the DAGs I had to run. However this didn't seem sustainable nor practical so I decided to just go ahead with the Dockerfile method in effect extending the image. I believe this was the way they called it.
So here's my Dockerfile \
QUESTION
As the title says, i want to setup Airflow that would run on a cluster (1 master, 2 nodes) using Docker swarm.
Current setup:
Right now i have Airflow setup that uses the CeleryExecutor that is running on single EC2.
I have a Dockerfile that pulls Airflow's image and pip install -r requirements.txt
.
From this Dockerfile I'm creating a local image and this image is used in the docker-compose.yml that spins up the different services Airflow need (webserver, scheduler, redis, flower and some worker. metadb is Postgres that is on a separate RDS).
The docker-compose is used in docker swarm mode ie. docker stack deploy . airflow_stack
Required Setup:
I want to scale the current setup to 3 EC2s (1 master, 2 nodes) that the master would run the webserver, schedule, redis and flower and the workers would run in the nodes. After searching and web and docs, there are a few things that are still not clear to me that I would love to know
- from what i understand, in order for the nodes to run the workers, the local image that I'm building from the Dockerfile need to be pushed to some repository (if it's really needed, i would use AWS ECR) for the airflow workers to be able to create the containers from that image. is that correct?
- syncing volumes and env files, right now, I'm mounting the volumes and insert the envs in the docker-compose file. would these mounts and envs be synced to the nodes (and airflow workers containers)? if not, how can make sure that everything is sync as airflow requires that all the components (apart from redis) would have all the dependencies, etc.
- one of the envs that needs to be set when using a CeleryExecuter is the broker_url, how can i make sure that the nodes recognize the redis broker that is on the master
I'm sure that there are a few more things that i forget, but what i wrote is a good start. Any help or recommendation would be greatly appreciated
Thanks!
Dockerfile:
...ANSWER
Answered 2021-Nov-27 at 14:26Sounds like you are heading in the right direction (with one general comment at the end though).
Yes, you need to push image to container registry and refer to it via public (or private if you authenticate) tag. The tag in this case is usally the
registry/name:tag
. For example you can see one of the CI images of Airlfow here: https://github.com/apache/airflow/pkgs/container/airflow%2Fmain%2Fci%2Fpython3.9 - the purpose is a bit different (we use it for our CI builds) but the mechanism is the same: you build it locally, tag with the "registry/image:tag"docker build . --tag registry/image:tag
and rundocker push registry/image:tag
. Then whenever you refer to it from your docker compose, viaregistry/image:tag
, docker compose/swarm will pull the right image. Just make sure you make unique TAGs when you build your images to know which image you push (and account for future images).Env files should be fine and they will distribute across the instances, but locally mounted volumes will not. You either need to have some shared filesystem (like NFS, maybe EFS if you use AWS) where the DAGs are stored, or use some other synchronization method to distribute the DAGs. It can be for example git-sync - which has very nice properties especially if you use Git to store the DAG files, or baking DAGs into the image (which requires to re-push images when they change). You can see different options explained in our Helm Chart https://airflow.apache.org/docs/helm-chart/stable/manage-dags-files.html
You cannot use
localhost
you need to set it to a specific host and make sure your broker URL is reachable from all instances. This can be done either by assining specific IP address/DNS name to your 'broker' instance and opening up the right ports in firewalls (make sure you control where you can reach thsoe ports from) and maybe even employing some load-balancing.
I do not know DockerSwarm well enough how difficult or easy it is to set it all up, but nonestly, that's kind of a lot of work - it seems - to do it all manually.
I would strongly, really strongly encourage you to use Kubernetes and the Helm Chart which Airlfow community develops: https://airflow.apache.org/docs/helm-chart/stable/index.html . There a lot of issues and necessary configurations either solved in the K8S (scaling, shared filesystems - PVs, networking and connectiviy, resource management etc. etc.) or by our Helm (Git-Sync side containers, broker configuration etc.)
QUESTION
I have an docker compose file which spins up the local airflow instance as below:
...ANSWER
Answered 2021-Nov-22 at 15:40If you add an environment variable named AIRFLOW_VAR_CONFIG_BUCKET
to the list under environment:
, it should be accessible by Airflow. Sounds like you're doing that correctly.
Two things to note:
- Variables (& connections) set via environment variables are not visible in the Airflow UI. You can test if they exist by executing
Variable.get("config_bucket")
in code. - The Airflow scheduler/worker (depending on Airflow executor) require access to the variable while running a task. Adding a variable to the webserver is not required.
QUESTION
I setup mosquitto password using a password file
...ANSWER
Answered 2021-Nov-14 at 19:45At a push you could enable listener with MQTT over Websockets as the protocol and then use a basic curl get request to check it the broker is up.
e.g. add this to the mosquitto.conf
QUESTION
I just recently installed airflow 2.1.4 with docker containers, I've successfully set up the postgres, redis, scheduler, 2x local workers, and flower on the same machine with docker-compose.
Now I want to expand, and set up workers on other machines.
I was able to get the workers up and running, flower is able to find the worker node, the worker is receiving tasks from the scheduler correctly, but regardless of the result status of the task, the task would be marked as failed with error message like below:
...ANSWER
Answered 2021-Oct-29 at 22:23For this issue: " Failed to fetch log file from worker. [Errno -3] Temporary failure in name resolution"
Looks like the worker's hostname is not being correctly resolved. The web program of the master needs to go to the worker to fetch the log and display it on the front-end page. This process is to find the host name of the worker. Obviously, the host name cannot be found, Therefore, add the host name to IP mapping on the master's vim /etc/hosts
- You need to have the image that's going to be used in all your containers except message broker, meta database and worker monitor. Following is the Dockerfile.
2.If using LocalExecutor, the scheduler and the webserver must be on the same host.
Docker file:
QUESTION
I'm using a MariaDB docker image and keep getting the Warning:
...ANSWER
Answered 2021-Oct-25 at 17:20Based on the update to your question, you're trying to run the mysqladmin ping
command inside the container. mysqladmin
is attempting to connect as the root
user, but authenticating to your database server requires a password.
You can provide a password to mysqladmin
by:
- Using the
-p
command line option - Using the
MYSQL_PWD
environment variable - Creating a credentials file
If we move the root password out of your image, and instead set it at runtime, we can write your docker-compose.yml
file like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install CMD-S
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page